diff --git a/lib/screens/repeater_settings_screen.dart b/lib/screens/repeater_settings_screen.dart index 6c1e85f..018caef 100644 --- a/lib/screens/repeater_settings_screen.dart +++ b/lib/screens/repeater_settings_screen.dart @@ -1203,11 +1203,11 @@ class _RepeaterSettingsScreenState extends State { subtitle: Text( l10n.repeater_localAdvertIntervalMinutes(_advertInterval), ), - trailing: Checkbox( + trailing: Switch( value: _advertEnable, onChanged: (value) { setState(() { - _advertInterval = value! ? 60 : 0; + _advertInterval = value ? 60 : 0; _advertEnable = value; }); _markChanged(); @@ -1237,11 +1237,11 @@ class _RepeaterSettingsScreenState extends State { subtitle: Text( l10n.repeater_floodAdvertIntervalHours(_floodAdvertInterval), ), - trailing: Checkbox( + trailing: Switch( value: _floodAdvertEnable, onChanged: (value) { setState(() { - _floodAdvertInterval = value! ? 3 : 0; + _floodAdvertInterval = value ? 3 : 0; _floodAdvertEnable = value; }); _markChanged();