fix: config init fail (#365)

This commit is contained in:
Levi authored and GitHub committed 2024-01-30 14:49:26 +08:00
1 parent 39316e9b8e
commit 8ad571aa08
3 files changed
+20 -31

No files matched your search

@@ -138,9 +138,8 @@ class SettingView extends GetView<SettingController> {
],
);
});
final buildHttpUseServerCtime = _buildConfigItem(
'useServerCtime'.tr, () => httpConfig.useServerCtime.toString(),
(Key key) {
final buildHttpUseServerCtime = _buildConfigItem('useServerCtime'.tr,
() => httpConfig.useServerCtime ? 'on'.tr : 'off'.tr, (Key key) {
return Container(
alignment: Alignment.centerLeft,
child: Switch(