In Material3 components documentation (link) there is an example video of how MediumTopAppBar
is changed during scroll to CenterAlignedTopAppBar
. Description also explains: "When scrolling up, Medium top app bars can use the compress effect to transform into Compact top app bars. They should not return to Medium size until the user scrolls back to the top of the page."
I've tried to implement MediumTopAppBar
. It transforms to SmallTopAppBar
without any issues, but I can't seem to figure out how to transform it to CenterAlignedTopAppBar
.
I can't seem to find any examples or detailed documentation as to how this can be achieved. Any ideas as to how this can be achieved?