Ahmed Elsayed
Ahmed Elsayed
Check the `decoration` parameter of DropdownButtonFormField2 at [Example 7](https://github.com/AhmedLSayed9/dropdown_button2?tab=readme-ov-file#7-using-dropdownbuttonformfield2-with-form), you've to disable the horizontal padding there.
> Unfortunately, this doesn’t work with the prefixIcon 😕 Can you explain more please? Maybe a sample can help.
I mean a working sample that has zero horizontal padding at `decoration` parameter.
> In InputDecoration of DropdownbuttonFormField2, there is no horizontal padding in the example I provided above. The issue is that the padding in MenuItemStyleData is passed to ButtonStyleData (when the...
Alright, when you've null buttonWidth & dropdownWidth, all menu horizontal padding will be added to the button padding so that menu width adapts to max items width with padding properly....
Can you provide a minimal sample that produces the issue, please? Also, What version are you using?
Can you test the code using latest beta version? Also, I need a working sample without dependencies to be able to test it.
@heshesh2010 Can you provider a minimal working sample?
> do u know why then set reverse: true i got this animating behaviour on drop menu list space ? I'm not sure what's the reason tbh. It needs a...
Well, To make it auto sync you've to use `decoration.contentPadding`. but that will not match with the menu padding.