From 0df3dcf1a8e9e6187bc89e95e2df44076cb1bb02 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 16 Jul 2022 11:49:19 +0200 Subject: [PATCH] settings: Show underline for select options --- .../dropdown_button_settings_tile.dart | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart b/packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart index 721ffcba..43a12efa 100644 --- a/packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart +++ b/packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart @@ -33,23 +33,21 @@ class DropdownButtonSettingsTile extends InputSettingsTile> { : Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor), ), trailing: valuesSnapshot.hasData - ? DropdownButtonHideUnderline( - child: DropdownButton( - value: value, - items: valuesSnapshot.data!.keys - .map( - (final k) => DropdownMenuItem( - value: k, - child: Text(valuesSnapshot.data![k]!(context)), - ), - ) - .toList(), - onChanged: enabledSnapshot.data ?? false - ? (final value) async { - await option.set(value as T); - } - : null, - ), + ? DropdownButton( + value: value, + items: valuesSnapshot.data!.keys + .map( + (final k) => DropdownMenuItem( + value: k, + child: Text(valuesSnapshot.data![k]!(context)), + ), + ) + .toList(), + onChanged: enabledSnapshot.data ?? false + ? (final value) async { + await option.set(value as T); + } + : null, ) : null, ),