-
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_dashboard): Remove scrolling inside dashboard widgets #1107
Conversation
aeedfac
to
1261278
Compare
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 don't know if I like this approach.
I haven't had a look at the performance but I don't think it will look good.
It looks like the web interface does only render 7 elements and at most one button (counting as an element).
Maybe we should also go this route.
I understand your concern, but I found this to be the easiest way. Otherwise we have to calculate how many buttons or messages there are and then hide some items accordingly. It gets even harder because the messages and the buttons have different heights. I'm not sure why you think the performance would be bad (except for calling the generator function twice). After building the widgets like you would normally do we just loop over them once more and read the size. Should be linear complexity so not really concerning? |
https://api.flutter.dev/flutter/widgets/IntrinsicHeight-class.html
And this on top of the performance impact you already mentioned. I also dislike that this could potentially result in one list being extremely long forcing others to add more whitespace. This is not pleasing to look at. |
But if you want I can test the performance impact we can move forward for now. |
Ah I forgot about this :/
I think the chance is quite low. Usually there is 7 items, 1 button and 1 message at max. Technically there could be more than that but I don't think any app actually does that.
If you don't mind please do. |
b565496
to
ea0f008
Compare
I currently have two buttons for notes ("Neue Notiz erstellen" and "Weitere Notizen").
Sure. I'll update you in a bit (maybe tomorrow). |
ea0f008
to
325e2f3
Compare
@Leptopoda ping :) |
325e2f3
to
b38de33
Compare
Signed-off-by: jld3103 <[email protected]>
b38de33
to
62e9925
Compare
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.
Let's just get it done.
Due to the dexing issues I could not verify the impact on a low end phone. There was no measurable impact on my x86 machine.
Fixes #1075