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

@@ -2,8 +2,8 @@
class BuildData { class BuildData {
static const String name = "ToolBox"; static const String name = "ToolBox";
static const int build = 69; static const int build = 70;
static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (2 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n"; static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (3 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n";
static const String buildAt = "2022-01-02 19:20:43.964228"; static const String buildAt = "2022-01-03 14:58:50.087508";
static const int modifications = 2; static const int modifications = 2;
} }

View File

@@ -64,7 +64,8 @@ class _ServerDetailPageState extends State<ServerDetailPage>
_buildCPUView(si.status), _buildCPUView(si.status),
_buildDiskView(si.status), _buildDiskView(si.status),
_buildMemView(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: AnimationLimiter(
child: Column( child: Column(
children: AnimationConfiguration.toStaggeredList( children: AnimationConfiguration.toStaggeredList(
duration: const Duration(milliseconds: 477), duration: const Duration(milliseconds: 377),
childAnimationBuilder: (widget) => SlideAnimation( childAnimationBuilder: (widget) => SlideAnimation(
verticalOffset: 77.0, verticalOffset: 77.0,
child: FadeInAnimation( child: FadeInAnimation(
@@ -76,7 +76,8 @@ class _ServerPageState extends State<ServerPage>
), ),
children: [ children: [
const SizedBox(height: 13), 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 = final topRightStr =
getTopRightStr(cs, ss.cpu2Status.temp, ss.uptime, ss.failedInfo); 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( final style = TextStyle(
color: _theme.textTheme.bodyText1!.color!.withAlpha(100), fontSize: 11); color: _theme.textTheme.bodyText1!.color!.withAlpha(100), fontSize: 11);