kopia lustrzana https://gitlab.com/mysocialportal/relatica
Change settings screen to use switches instead of checkboxes
rodzic
af1f513ed5
commit
0194e53be0
|
@ -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,
|
||||
),
|
||||
|
|
Ładowanie…
Reference in New Issue