fix cpu temp padding

This commit is contained in:
lollipopkit
2023-02-01 10:37:06 +08:00
parent 5ebb4e6b3e
commit 068089d207
5 changed files with 31 additions and 17 deletions

View File

@@ -170,8 +170,19 @@ class _MyHomePageState extends State<MyHomePage>
mainAxisAlignment: MainAxisAlignment.center,
children: [
_buildIcon(),
const Text(BuildData.name),
Text(_versionStr),
TextButton(
onPressed: () => showRoundDialog(
context,
_versionStr,
const Text('${BuildData.buildAt}\n\n${BuildData.engine}'),
[],
),
child: Text(
'${BuildData.name}\n$_versionStr',
style: TextStyle(color: widget.primaryColor),
textAlign: TextAlign.center,
),
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.07,
),
@@ -188,9 +199,10 @@ class _MyHomePageState extends State<MyHomePage>
ListTile(
leading: const Icon(Icons.vpn_key),
title: Text(_s.privateKey),
onTap: () =>
AppRoute(const PrivateKeysListPage(), 'private key list')
.go(context),
onTap: () => AppRoute(
const PrivateKeysListPage(),
'private key list',
).go(context),
),
ListTile(
leading: const Icon(Icons.download),
@@ -273,7 +285,7 @@ class _MyHomePageState extends State<MyHomePage>
ConstrainedBox(
constraints: const BoxConstraints(maxHeight: 53, maxWidth: 53),
child: Container(
color: primaryColor,
color: widget.primaryColor,
),
),
ConstrainedBox(

View File

@@ -114,6 +114,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
style: textSize27,
textScaleFactor: 1.0,
),
width7,
tempWidget
],
),
@@ -219,7 +220,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
Row(
children: [
Text('${used.toStringAsFixed(0)}%', style: textSize27),
const SizedBox(width: 7),
width7,
Text('of ${(ss.mem.total * 1024).convertBytes}',
style: textSize13Grey)
],