Skip to content

Commit

Permalink
feat: better breakpoint for settings_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 17, 2024
1 parent 2234cbc commit e3d43a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/settings/settings_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class _SettingsSelectionState<T extends num>
icon ??= widget.iconBuilder?.call(widget.pref.value);
icon ??= Icons.settings;

final useDropdownInstead = MediaQuery.sizeOf(context).width < 450;
final expSelectionWidth = widget.options.length * widget.optionsWidth;
final useDropdownInstead =
MediaQuery.sizeOf(context).width * 0.48 < expSelectionWidth;

return ListTile(
onTap: () {
Expand Down

0 comments on commit e3d43a8

Please sign in to comment.