Add padding for bottom little white tile

This commit is contained in:
Junyuan Feng
2022-01-03 15:03:38 +08:00
parent b922428c40
commit 3fc43d06e9
3 changed files with 9 additions and 7 deletions

View File

@@ -64,7 +64,8 @@ class _ServerDetailPageState extends State<ServerDetailPage>
_buildCPUView(si.status),
_buildDiskView(si.status),
_buildMemView(si.status),
_buildNetView(si.status.netSpeed)
_buildNetView(si.status.netSpeed),
SizedBox(height: _media.padding.bottom),
],
),
);

View File

@@ -67,7 +67,7 @@ class _ServerPageState extends State<ServerPage>
child: AnimationLimiter(
child: Column(
children: AnimationConfiguration.toStaggeredList(
duration: const Duration(milliseconds: 477),
duration: const Duration(milliseconds: 377),
childAnimationBuilder: (widget) => SlideAnimation(
verticalOffset: 77.0,
child: FadeInAnimation(
@@ -76,7 +76,8 @@ class _ServerPageState extends State<ServerPage>
),
children: [
const SizedBox(height: 13),
...pro.servers.map((e) => _buildEachServerCard(e))
...pro.servers.map((e) => _buildEachServerCard(e)),
SizedBox(height: _media.padding.bottom),
],
))),
);
@@ -131,7 +132,7 @@ class _ServerPageState extends State<ServerPage>
final topRightStr =
getTopRightStr(cs, ss.cpu2Status.temp, ss.uptime, ss.failedInfo);
final hasError = cs == ServerConnectionState.failed;
final hasError = cs == ServerConnectionState.failed && ss.failedInfo != null;
final style = TextStyle(
color: _theme.textTheme.bodyText1!.color!.withAlpha(100), fontSize: 11);