Repository navigation
DropdownMenu inputDecoration isCollapsed property does not reduce vertical spacing #138691
Copy link
Copy link
Closed
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issueP2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 3.16Found to occur in 3.16Found to occur in 3.16found in release: 3.17Found to occur in 3.17Found to occur in 3.17frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages teamworkaround availableThere is a workaround available to overcome the issueThere is a workaround available to overcome the issue
Description
Existing workaround: #138691 (comment)
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
I'm would like to remove the vertical spacing in the DropdownMenu here (blue arrow)
however it seems like there is no way to reduce the spacing. The InputDecorator property isCollapsed: true has no effect
Expected results
Actual results
Code sample
Code sample
DropdownMenu<String>(
inputDecorationTheme: const InputDecorationTheme(
contentPadding: EdgeInsets.fromLTRB(5, 0, 5, 0),
isCollapsed: true
),
...
)
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.0, on Microsoft Windows [Version 10.0.19045.3570], locale en-GB)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.8.3)
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.84.2)
[√] Connected device (3 available)
[√] Network resources
• No issues found!Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issueP2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 3.16Found to occur in 3.16Found to occur in 3.16found in release: 3.17Found to occur in 3.17Found to occur in 3.17frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages teamworkaround availableThere is a workaround available to overcome the issueThere is a workaround available to overcome the issue
Type
Projects
- StatusShow more project fieldsDone (PR merged)


Activity
dam-ease commentedon Nov 20, 2023
Thanks for filing this.
I can reproduce this as well also with the
isDenseproperty, this might be similar/related to #60624.Can you check this out?
albe-jj commentedon Nov 20, 2023
Thanks for the response. I looked at the issue. It could be related, I'm not sure.
It seems like in this the icon is taking all the space. Is there any workaround? I've already tried to minimize the
contentPadding: EdgeInsets.fromLTRB(5, 0, 5, 0),as suggested in the issue you mentioned, but there is still plenty of vertical space.dam-ease commentedon Nov 21, 2023
Thanks for your response.
I can see this as well and I don't see any workaround that could suit this use case. Replacing the
trailingIconwith aSizedBoxstill gives it the default padding.This might be similar/related to #60624
I'll be labelling this for more insights.
stable, master flutter doctor -v
16 remaining items
Expose affixes icon constraints in InputDecorationTheme (#153089)
Expose affixes icon constraints in InputDecorationTheme (flutter#153089)
Expose affixes icon constraints in InputDecorationTheme (flutter#153089)
flutter-triage-bot commentedon Dec 12, 2024
This issue is assigned to @bleroux but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
Fix DropdownMenu isCollapsed decoration does not Reduce height (#161427)
github-actions commentedon Jan 29, 2025
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.