mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.: server detail page
This commit is contained in:
@@ -133,22 +133,20 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
|
||||
return CardX(
|
||||
ExpandTile(
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
_buildAnimatedText(
|
||||
ValueKey(percent),
|
||||
'$percent%',
|
||||
UIs.textSize27,
|
||||
),
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: details,
|
||||
),
|
||||
],
|
||||
title: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: _buildAnimatedText(
|
||||
ValueKey(percent),
|
||||
'$percent%',
|
||||
UIs.textSize27,
|
||||
),
|
||||
),
|
||||
childrenPadding: const EdgeInsets.symmetric(vertical: 13),
|
||||
initiallyExpanded: ss.cpu.coresCount <= 8,
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: details,
|
||||
),
|
||||
children: _buildCPUProgress(ss.cpu),
|
||||
),
|
||||
);
|
||||
@@ -317,7 +315,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
return CardX(
|
||||
ExpandTile(
|
||||
title: Text(l10n.disk),
|
||||
childrenPadding: EdgeInsets.zero,
|
||||
childrenPadding: const EdgeInsets.only(bottom: 7),
|
||||
leading: const Icon(Icons.storage, size: 17),
|
||||
initiallyExpanded: children.length <= 7,
|
||||
children: children,
|
||||
@@ -421,7 +419,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
|
||||
Widget _buildNetSpeedItem(NetSpeed ns, String device) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 17),
|
||||
padding: const EdgeInsets.symmetric(vertical: 11, horizontal: 17),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
@@ -493,7 +491,6 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
text,
|
||||
style: style,
|
||||
textScaleFactor: _textFactor,
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
transitionBuilder: (child, animation) => FadeTransition(
|
||||
opacity: animation,
|
||||
|
||||
@@ -491,7 +491,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
if (onTap == null) return child;
|
||||
return IconButton(
|
||||
key: key,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 7),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 3),
|
||||
onPressed: onTap,
|
||||
icon: child,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user