Repository navigation
Autocomplete widget goes out of screen from right side #78746
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: layoutSystemChrome and Framework's Layout IssuesSystemChrome and Framework's Layout Issuesa: qualityA truly polished experienceA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.1Found to occur in 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has partial patchThere is a PR awaiting someone to take it across the finish lineThere is a PR awaiting someone to take it across the finish linehas 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 team
Description
https://api.flutter.dev/flutter/material/Autocomplete-class.html
From the code on flutter doc, If you add padding to AutocompleteBasicExample() widget the autocomplete box goes outside the screen from the right side.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: layoutSystemChrome and Framework's Layout IssuesSystemChrome and Framework's Layout Issuesa: qualityA truly polished experienceA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.1Found to occur in 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has partial patchThere is a PR awaiting someone to take it across the finish lineThere is a PR awaiting someone to take it across the finish linehas 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 team


Activity
darshankawar commentedon Mar 22, 2021
@ibrahimxcool
Tried the document example on latest stable using iphone simulator, which worked well I think:
Web also seems to be okay:
flutter doctor -v
Can you provide
flutter doctor -v?ibrahimxcool commentedon Mar 22, 2021
@darshankawar Please add
Paddingas a parent to theAutoCompletewidget and the autocomplete box will ignore the padding as shown in my comment above.darshankawar commentedon Mar 23, 2021
flutter doctor -v
maheshj01 commentedon Apr 21, 2021
This issue seems to be present in RawAutocomplete than with AutoComplete I tried with a minimal example
code snippet
This was the output
maheshj01 commentedon Apr 22, 2021
I temporarily published this third-party package https://pub.dev/packages/searchfield to deal with this issue.
50 remaining items
davidnwaneri commentedon Aug 6, 2024
I also experienced this but not with the
Autocompletewidgetdropdown-issue.mp4
Here is a minimal reproducible example
justinmc commentedon Aug 6, 2024
I'm still working on a fix in #143249.
@davidnwaneri That looks like the same root problem. You can see my PR for an idea of how to work around it.
miikalehtonen commentedon Aug 8, 2024
Do you have idea when will the fix for autocomplete width be available? We're running into this issue with dialog in customer project and would be crucial to have it fixed in production code.
wmadden commentedon Sep 26, 2024
matthew-carroll commentedon Sep 29, 2024
If we added an autocomplete widget to our
overlordpackage at the Flutter Bounty Hunters, would people in this thread use it? Or is it important to you that you get this from Flutter and not from a community package?provokateurin commentedon Sep 29, 2024
To me it is important that this is fixed in flutter itself. I really dislike adding any 3rdparty flutter UI packages due usual lack of quality and configuration (I don't know how the package you mentioned scores on those).
Anyway, I think this discussion is a bit offtopic for this issue.
Autocomplete Options Width (#143249)
Autocomplete Options Width (flutter#143249)
github-actions commentedon Jan 28, 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.Autocomplete Options Width (#143249)