Change settings screen to use switches instead of checkboxes

codemagic-setup
Hank Grabowski 2023-04-17 10:53:07 -04:00
rodzic af1f513ed5
commit 0194e53be0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -30,9 +30,9 @@ class SettingsScreen extends StatelessWidget {
Widget buildLowBandwidthWidget(SettingsService settings) {
return ListTile(
title: const Text('Low bandwidth mode'),
trailing: Checkbox(
trailing: Switch(
onChanged: (value) {
settings.lowBandwidthMode = value ?? false;
settings.lowBandwidthMode = value;
},
value: settings.lowBandwidthMode,
),