-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: AutocompleteWidget: Scrollbar + dividers + correct width #2704
fix: AutocompleteWidget: Scrollbar + dividers + correct width #2704
Conversation
Note: Despite my PR, we should also add that clicking outside the list should close it |
Codecov Report
@@ Coverage Diff @@
## develop #2704 +/- ##
==========================================
- Coverage 8.86% 7.19% -1.67%
==========================================
Files 161 219 +58
Lines 6623 10605 +3982
==========================================
+ Hits 587 763 +176
- Misses 6036 9842 +3806
Help us with your feedback. Take ten seconds to tell us how you rate us. |
In a perfect world the list should probably take as much space as possible, therefore the notion of "outside the list" is not easy. |
borderSide: BorderSide.none, | ||
LayoutBuilder( | ||
builder: (_, BoxConstraints constraints) { | ||
return Row( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find reading this a bit difficult. What about moving part of it to a fun?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find reading this a bit difficult. What about moving part of it to a fun?
@VaiTon In flutter we call that Widget
s ;)
That said, I must say that code is not fun to read as there are almost no changes and the only difference is that the LayoutBuilder
shifts the whole code. As we use flutter and automatic format there's not much we can do about it.
Perhaps this time move that Row
into an ad-hoc Widget
: that won't solve @VaiTon's problem now but at least next time any change would be easier to review. No a strong requirement from my side, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have split the child of the AutocompleteList to a dedicated Widget.
However for the simple_input_widget file, there is too much work to do, and is thus outside the goal of this PR.
Please open an issue if necessary instead 👍
cb41a6c
to
e445a30
Compare
On product edition pages, when there are fields with suggestions, the list can be improved by:
Previous UI:

New UI:

Will fix #2703