Djuro
08/01/2024, 12:56 PMLargeTopAppBar or should I approach this issue with a custom solution?MR3Y
08/01/2024, 1:58 PMColton Idle
08/01/2024, 5:45 PMDjuro
08/01/2024, 6:16 PMmaterial3 TopAppBar component, I understood that i should go with a custom solution, did I get it correctly? @MR3YMR3Y
08/01/2024, 6:20 PMmaterial3 TopAppBar for anything beyond simple Top bars, so, I can't be sure if it fits your needs but I guess it would be limited in terms of customization as it implements the "opinionated" material3 design system.Doris Liu
08/01/2024, 8:05 PMLargeTopAppBar. The title is composed twice in the current impl and there's no straightforward way to distinguish which one is entering vs exiting, which makes it challenging to setup a shared element transition. I would recommend filing a feature request for it in the material component, and going with a custom solution.Colton Idle
08/01/2024, 10:32 PMDoris Liu
08/02/2024, 1:18 AMTransition with SeekableTransitionState , and seek the transition between the collapsed and expanded state. It might be an overkill for a simple application like this. If you have other things changing simultaneously such as background color, alpha of other elements, then shared element would be my recommendation.
With nestedScroll, you'll need to obtain the target position for both states, and interpolate between the two positions. It'll likely be easier to do for this simple example.Djuro
08/02/2024, 7:42 AM