Was looking at Predictive back and it works well i...
# compose
j
Was looking at Predictive back and it works well in the latest beta, however modal bottomsheets does not seem to respond to them. Wondering if thats a known issue, or I am doing something wrong?
s
m3 ones do, at least in the latest versions
j
Hmmm, need to check then because we use M3. Thanks :)
s
Yeah try the latest version. Should also be fine in the latest stable, but try the alphas if not.
k
and how does it work with the predictive back?
s
It does this animation as you swipe
j
@Stylianos Gakis are you using compose multiplatform? I'm assuming yes, but realized I wasn't that specific
k
it seems as a default NavHost animation
how is your destination described in the NavHost?
j
Is it a destination in the nav graph
k
if it is
composable() { bottomSheet() }
then it is a destination animation
s
I realize the question might not be directed at me, but just to be clear for what I show in the video I posted above. It's not multiplatform, just android. It's not using navigation destinations, but it's a simple modal bottom sheet. We are using the m3 implementation there, latest stable as far as I remember.
j
Thanks. I was hoping it wasn't a destination in the graph, so that's promising. Will update my CMP sample and get back to you
h
the navigation destination bottom sheet still is not supporting predictive back
k
TBH, I'd expect a collapsing animation instead of that
or better nothing
as for dialogs