-
Notifications
You must be signed in to change notification settings - Fork 32
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(neon_talk): Improve message list constraints #1849
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1849 +/- ##
==========================================
- Coverage 28.63% 28.63% -0.01%
==========================================
Files 197 197
Lines 67585 67586 +1
==========================================
Hits 19356 19356
- Misses 48229 48230 +1
*This pull request uses carry forward flags. Click here to find out more.
|
I don't know of any way to make it work with a SliverConstrain |
Only the messages should be constrained. Right now I just constrained the whole sliver, but I guess constraining the individual messages is also possible. Then the padding can be applied to the whole list and it's separate from the width constraint. |
I couldn't find any other way to make it work, using ConstrainedBox on the TalkMesssage widget has no effect (but I don't understand why). |
This ontop of this branch works for me. Or are you trying to achieve something different? |
…o getter Signed-off-by: provokateurin <[email protected]>
Signed-off-by: provokateurin <[email protected]>
7ca02c0
to
9017f74
Compare
I almost had the same patch as you sent, but it didn't work. Now it did 🤷♀️ |
Fixes #1740
This not only adds the padding so that the scroll bar never overlaps the message time, but also moves the constraint into the list itself so that the scrollbar is always at the most right position regardless of the list width and you can scroll everywhere.
I didn't find any way to use SliverConstrainedCrossAxis because it aligns everything to the left but the messages should be centered. Maybe @Leptopoda you know what would make this work.