Skip to content

Commit

Permalink
Fix on/off switch text overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alesimula committed Jan 10, 2022
1 parent 4cf1080 commit 155097d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screens/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ScreenSettingsState extends State<ScreenSettings> {
FluentCard(
leading: const Icon(Mdi.powerStandby , size: 23),
content: Text(lang.settings_autostart),
trailing: Row(children: [SizedBox(width: 28.5, child: Text(autostartWSA ? ON : OFF)), ToggleSwitch(
trailing: Row(children: [ConstrainedBox(constraints: const BoxConstraints(minWidth: 28.5), child: Text(autostartWSA ? ON : OFF)), ToggleSwitch(
checked: autostartWSA,
onChanged: (v) => GState.autostartWSA..$ = v..persist()
)]),
Expand Down Expand Up @@ -248,7 +248,7 @@ class ScreenSettingsState extends State<ScreenSettings> {
content: Column(crossAxisAlignment: CrossAxisAlignment.start, children:
optionsList<Options_IconShape>(Options_IconShape.values, (e)=>e.description(lang), (e) => iconShape == e, (e) => GState.iconShape..update((_) => e)..persist())
),
trailing: Row(children: [SizedBox(width: 28.5, child: Text(legacyIcons ? OFF : ON)), ToggleSwitch(
trailing: Row(children: [ConstrainedBox(constraints: const BoxConstraints(minWidth: 28.5), child: Text(legacyIcons ? OFF : ON)), ToggleSwitch(
checked: !legacyIcons,
onChanged: (v) => GState.legacyIcons..$ = !v..persist()
)]),
Expand Down

0 comments on commit 155097d

Please sign in to comment.