Skip to content

Commit

Permalink
fix: dropdown theme (#333)
Browse files Browse the repository at this point in the history
Co-authored-by: Sagar Raj <[email protected]>
  • Loading branch information
sagarrajgit and Sagar Raj authored Jan 15, 2024
1 parent 67c5c86 commit 80fc436
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/app/modules/settings/views/language_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ class _LanguageMenuState extends State<LanguageMenu> {
child: Row(
children: [
DropdownMenu(
menuStyle: MenuStyle(
backgroundColor: MaterialStatePropertyAll(
widget.themeController.isLightMode.value
? kLightSecondaryBackgroundColor
: ksecondaryBackgroundColor,
),
),
inputDecorationTheme:
InputDecorationTheme(enabledBorder: InputBorder.none),
trailingIcon: Icon(Icons.arrow_drop_down_outlined,
Expand All @@ -54,11 +61,18 @@ class _LanguageMenuState extends State<LanguageMenu> {
return DropdownMenuEntry(
value: e.key,
label: "${e.value['description']}",
style: ButtonStyle(
foregroundColor: MaterialStatePropertyAll(
widget.themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
),
);
}).toList(),
onSelected: (newValue) {
widget.controller.updateLocale(newValue!);
}
},
),
],
),
Expand Down

0 comments on commit 80fc436

Please sign in to comment.