Skip to content

Commit

Permalink
fix: missing adaptive switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous authored and Anonymous committed Jun 25, 2021
1 parent 0a06103 commit ec087d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pages/Settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class _SettingsPageState extends State<SettingsPage> {
title: title,
subtitle: description,
onTap: () => BlocProvider.of<Settings>(context).add(SettingsChange(state: state.copyWith(messageAlternateBackground: !state.messageAlternateBackground))),
trailing: Switch(
trailing: Switch.adaptive(
onChanged: (bool value) => BlocProvider.of<Settings>(context).add(SettingsChange(state: state.copyWith(messageAlternateBackground: value))),
value: state.messageAlternateBackground,
),
Expand Down

0 comments on commit ec087d4

Please sign in to comment.