mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
use switch for advert enable/disable
move style to align with other toggles and use a switch instead of a checkbox
This commit is contained in:
parent
ede3142d40
commit
4f83d87f8c
1 changed files with 4 additions and 4 deletions
|
|
@ -1203,11 +1203,11 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
|||
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<RepeaterSettingsScreen> {
|
|||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue