#22 Add switch for run in bg
This commit is contained in:
@@ -108,6 +108,9 @@ class _SettingPageState extends State<SettingPage> {
|
||||
if (isIOS) {
|
||||
children.add(_buildPushToken());
|
||||
}
|
||||
if (isAndroid) {
|
||||
children.add(_buildBgRun());
|
||||
}
|
||||
return Column(
|
||||
children: children.map((e) => RoundRectCard(e)).toList(),
|
||||
);
|
||||
@@ -499,4 +502,11 @@ class _SettingPageState extends State<SettingPage> {
|
||||
() => rebuildAll(context),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildBgRun() {
|
||||
return ListTile(
|
||||
title: Text(_s.bgRun),
|
||||
trailing: buildSwitch(context, _setting.bgRun),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user