You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DropDownButton underline is a long way away from the text it underlines. #4664
The size of the arrow might be something I broke with the icon changes.
The underline is because _kBottomBorderHeight is set to 2.0. That looks intentional. I don't know where we got that from. The spec seems to use a hairline (0.0). Fixing the underline width might be as simple as replacing that 2.0 with 0.0.
How to remove the underline from DropDownButton ?
Hi , Wrap your DropDownButton widget with DropdownButtonHideUnderline Widget to remove underline from DropDownButton .
Reacted by Jrog, Xander Gottlieb, Alexey Dolya, Nie Ben, gitdefllo, rami965, Sajad Sohrabi, Teerapat Kraisrisirikul, victornett, Roberto Oliveira and 9 more
Reacted by Montassar Attia, Alexey Dolya, Sajad Sohrabi, Roberto Oliveira, Kostia Vyrodov, Aneesh Jose and Ali Khan
Reacted by dotnetaddicted
Reacted by Ahmed A. ElmenEm, Alexey Dolya, Renato Franceschinelli, victornett, Roberto Oliveira, Kostia Vyrodov, Aneesh Jose, Ali Khan, Naing and Hamid Shah
Reacted by Aneesh Jose, Genius Coder, Ali Khan and Naing
How to remove the underline from DropDownButton ?
Hi , Wrap your DropDownButton widget with DropdownButtonHideUnderline Widget to remove underline from DropDownButton .
How to remove the underline from DropDownButton ?
Hi , Wrap your DropDownButton widget with DropdownButtonHideUnderline Widget to remove underline from DropDownButton .
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
abarth commentedon Jun 21, 2016
/cc @HansMuller
eseidelGoogle commentedon Jun 21, 2016
We also just need to check the DropDownButton pixel exactly matches the spec:
https://material.google.com/components/buttons.html#buttons-dropdown-buttons
eseidelGoogle commentedon Jun 22, 2016
Our sizes are just wrong.
Spec:


Flutter:
@HansMuller could you take this?
Hixie commentedon Jun 22, 2016
The size of the arrow might be something I broke with the icon changes.
The underline is because _kBottomBorderHeight is set to 2.0. That looks intentional. I don't know where we got that from. The spec seems to use a hairline (0.0). Fixing the underline width might be as simple as replacing that 2.0 with 0.0.
HansMuller commentedon Jun 22, 2016
I agree that the underline's size and position and the arrow's size don't match the spec. Will fix.
eseidelGoogle commentedon Jun 23, 2016
I wrote a half-patch yesterday. In case it's useful:
Hixie commentedon Jun 23, 2016
Pretty sure that should 0.0, not 1.0.
Fix unguarded availability warnings for iOS (flutter#4664)
a7me63azzab commentedon Jan 4, 2019
How to remove the underline from DropDownButton ?
impratik commentedon Jan 19, 2019
a7me63azzab commentedon Jan 20, 2019
@impratik thanks
temirfe commentedon Mar 29, 2019
через ж*пу
victornett commentedon May 29, 2019
ty 🗡
chirmac commentedon Jun 14, 2019
Thank you so much
ivantanakaa commentedon Jun 19, 2019
How to change the underline width from DropDownButton?
ikicodedev commentedon Aug 21, 2019
You could also modify theunderline 'property of DropdownButton by passing it an empty container.
underline: Container (),github-actions commentedon Aug 28, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.