-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Fix SliverAppBar title opacity and test all cases #26021
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
Conversation
This comment has been minimized.
This comment has been minimized.
| // 1 | 0 | 0 || 1.0 | ||
| // 1 | 0 | 1 || 1.0 | ||
| // 1 | 1 | 0 || 1.0 | ||
| // 1 | 1 | 1 || fade |
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.
💯
This comment has been minimized.
This comment has been minimized.
GaryQian
left a comment
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.
LGTM!
HansMuller
left a comment
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.
LGTM
| final double toolbarOpacity = pinned ? 1.0 | ||
| : ((visibleMainHeight - _bottomHeight) / kToolbarHeight).clamp(0.0, 1.0); | ||
|
|
||
| // Truth table for `toolbarOpacity`: |
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.
It looks like the result is fade when pinned=false and 1.0 when pinned=true except with one exception (the last row). Aha: I see that the implementation boils it down nicely:
!pinned || (floating && bottom != null)
Fixes #25993.
Follow-up to #25051.