mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-31 13:25:10 +01:00
fix cpu temp padding
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 200;
|
||||
static const int build = 201;
|
||||
static const String engine =
|
||||
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (6 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
|
||||
static const String buildAt = "2023-01-29 22:04:40.624479";
|
||||
static const int modifications = 0;
|
||||
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (7 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
|
||||
static const String buildAt = "2023-01-31 17:36:05.286138";
|
||||
static const int modifications = 5;
|
||||
}
|
||||
|
||||
@@ -2,3 +2,4 @@ import 'package:flutter/widgets.dart';
|
||||
|
||||
const height13 = SizedBox(height: 13);
|
||||
const width13 = SizedBox(width: 13);
|
||||
const width7 = SizedBox(width: 7);
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user