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