mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +02:00
WiFi only BG update toggle (#819) + typo fix
This commit is contained in:
@@ -252,7 +252,32 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.labelSmall),
|
||||
height8
|
||||
height8,
|
||||
if (settingsProvider
|
||||
.enableBackgroundUpdates)
|
||||
Column(
|
||||
children: [
|
||||
height16,
|
||||
Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Flexible(
|
||||
child: Text(tr(
|
||||
'bgUpdatesOnWiFiOnly'))),
|
||||
Switch(
|
||||
value: settingsProvider
|
||||
.bgUpdatesOnWiFiOnly,
|
||||
onChanged: (value) {
|
||||
settingsProvider
|
||||
.bgUpdatesOnWiFiOnly =
|
||||
value;
|
||||
})
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
: const SizedBox.shrink();
|
||||
|
Reference in New Issue
Block a user