mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
fix: disk size display
This commit is contained in:
@@ -432,9 +432,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
return FadeTransition(opacity: animation, child: child);
|
||||
},
|
||||
child: _buildIOData(
|
||||
isSpeed
|
||||
? '${l10n.read}:\n$r'
|
||||
: 'Total:\n${rootDisk?.size.kb2Str}',
|
||||
isSpeed ? '${l10n.read}:\n$r' : 'Total:\n${rootDisk?.size.kb2Str}',
|
||||
isSpeed ? '${l10n.write}:\n$w' : 'Used:\n${rootDisk?.usedPercent}%',
|
||||
onTap: () {
|
||||
cardNoti.value = cardNoti.value.copyWith(diskIO: !isSpeed);
|
||||
|
||||
@@ -163,11 +163,11 @@ class _SnippetEditPageState extends State<SnippetEditPage>
|
||||
|
||||
${Snippet.fmtArgs.keys.map((e) => '`$e`').join(', ')}
|
||||
''',
|
||||
styleSheet: MarkdownStyleSheet(
|
||||
codeblockDecoration: const BoxDecoration(
|
||||
color: Colors.transparent,
|
||||
),
|
||||
),
|
||||
styleSheet: MarkdownStyleSheet(
|
||||
codeblockDecoration: const BoxDecoration(
|
||||
color: Colors.transparent,
|
||||
),
|
||||
),
|
||||
).padding(const EdgeInsets.all(13)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user