Optional "when charging only" toggle for BG updates (#1914)

This commit is contained in:
Imran Remtulla
2024-10-20 12:51:07 -04:00
parent 07ef86ae75
commit ea239ffa3a
28 changed files with 93 additions and 13 deletions

View File

@ -419,6 +419,25 @@ class _SettingsPageState extends State<SettingsPage> {
})
],
),
height16,
Row(
mainAxisAlignment:
MainAxisAlignment
.spaceBetween,
children: [
Flexible(
child: Text(tr(
'bgUpdatesWhileChargingOnly'))),
Switch(
value: settingsProvider
.bgUpdatesWhileChargingOnly,
onChanged: (value) {
settingsProvider
.bgUpdatesWhileChargingOnly =
value;
})
],
),
],
),
],