Ahmed Elsayed
Ahmed Elsayed
You've to set horizontal padding of `menuItemStyleData` to zero too, as it has a default value.
To apply the same padding of `decoration.contentPadding` to the menu items, you can set that padding to your items in `items` argument and exclude it at `selectedItemBuilder` argument (as it's...
I'll leave this open as it might be a good idea to optimize this internally and to prefer using `decoration.contentPadding` over `menuItemStyleData.padding` for DropdownButtonFormField2, or maybe both should just work.
@russellwheatley Can you check this PR, please?
The dropdown menu is pushed above the button so this is currently unachievable. If you've a thought about doing such behavior, i'm open for it.
What does "safe display" means? The dropdown can't go below the bottom of the screen.
Sure! For now, you can use `selectedItemBuilder` to add a leading icon when an item is selected.
> ## Default "when" syntax (skipLoadingOnReload: false, skipLoadingOnRefresh: true, skipError: false) > Before: > > ```dart > asyncValue.when( > data: (value) => print(value), > error: (error, stack) => print('Error $error'),...
Ahh You're right. Refreshing return AsyncData with isLoading set to true unlike Rebuild due to ref.watch which return AsyncLoading with value
> i'm tempted to wonder if it's a typo but i feel like only a 8-48%.. 12-52% chance of it :) 100% a typo. I think this is just a...