opt.: server status update interval

This commit is contained in:
lollipopkit
2024-01-21 17:45:01 +08:00
parent 7414dcc8da
commit 362dcdf288

View File

@@ -140,7 +140,6 @@ class _SettingPageState extends State<SettingPage> {
body: ListView( body: ListView(
padding: const EdgeInsets.symmetric(horizontal: 17), padding: const EdgeInsets.symmetric(horizontal: 17),
children: [ children: [
/// TODO: Remember add new items in front of the each list, so the user can easily find the new items
_buildTitle('App'), _buildTitle('App'),
_buildApp(), _buildApp(),
_buildTitle(l10n.server), _buildTitle(l10n.server),
@@ -271,10 +270,12 @@ class _SettingPageState extends State<SettingPage> {
10, 10,
(index) => PopupMenuItem( (index) => PopupMenuItem(
value: index, value: index,
child: Text('$index ${l10n.second}'), child: Text(index == 0 ? l10n.manual : '$index ${l10n.second}'),
), ),
growable: false, growable: false,
).toList(); ).toList();
// 1 second is too fast, so remove it
items.removeAt(1);
return ListTile( return ListTile(
title: Text( title: Text(