#105 new: switch of auto check update

This commit is contained in:
lollipopkit
2023-08-07 13:30:53 +08:00
parent 879a347f23
commit 98e77b9d0f
14 changed files with 44 additions and 2 deletions

View File

@@ -142,6 +142,7 @@ class _SettingPageState extends State<SettingPage> {
_buildThemeMode(),
_buildAppColor(),
_buildLaunchPage(),
_buildAutoCheckAppUpdate(),
_buildCheckUpdate(),
];
if (isIOS) {
@@ -977,4 +978,12 @@ class _SettingPageState extends State<SettingPage> {
},
);
}
Widget _buildAutoCheckAppUpdate() {
return ListTile(
title: Text(_s.autoCheckUpdate),
subtitle: Text(_s.whenOpenApp, style: grey),
trailing: buildSwitch(context, _setting.autoCheckAppUpdate),
);
}
}