I gotta say... I recently got my hands on a foldab...
# compose
a
I gotta say... I recently got my hands on a foldable, and adapting my compose layouts + adding new transitions to make the larger screen experience more cohesive has been a breeze. It's hard not to sit around all day and watch the shared transitions even with how simple they are 🤣
👍 6
🤩 3
😻 2
kodee loving 1
👍🏾 1
u
How did you get the toolbar blur?
a
The Haze library with progressive blurs, and then to ensure the cards don't overlap during transition I ensure they don't get drawn to the decoration layer so it'll blur the cards during transition 😁
u
nice, can I ask how is rhe runtime perf of that? no problems?
s
Is it hard to make this happen? Like the part of not drawing on the decoration layer so they still get blurred?
a
It's buttery smooth once all the codepaths are loaded (should be buttery smooth from the start on release builds) @ursus
Within the
sharedBounds
Modifier, there's a
renderInOverlayDuringTransition
parameter, that can be set. On the same screen where you have the blue is where you would set this to false. @Stylianos Gakis
Here's a more dramatic example, where the card expands to a full height from the grid size
🎉 2