Jan Skrasek
hrach.dev
Jan Skrasek
@hrach.dev
Mobile Software Engineer @ Rohlik.cz / Rohlik.group, ex-Disney+ Hotstar, ex-Kiwi.com;
Nextras ORM and PHP by night: nextras.org

Blog hrach.dev
Pisu Vam proto, protoze tyto vase vypady jsou opakovene, zjednodusene a za me zbytecne dehonestujici. Myslim, ze i Vam bude neprijemne, kdyz nekdo bude (opakovane) psat Pirati "nezklamou", kdy jednotlivec neco provede. Dekuji za pochopeni a zvazeni, JS
November 11, 2025 at 9:53 AM
Dobry den, vase opakujici se vypady oproti celku jsou mi velmi neprijemne. Za cirkev se povazuji vsichni verici a vy nas nalepkujete a odsuzujete vsechny, protoze nekdo jiny neco udelal. A ikdyby tam snad patril jen kler, tak porad absoltuni vetsina nic neudelala a neublizila.
November 11, 2025 at 9:53 AM
@p-y.wtf just got a heart attack
November 5, 2025 at 6:01 PM
yeah. see the predictive back handler in my sample. I changed my impl of nav back to trigger back press instead of remove last. though this is extremely hacky.
October 27, 2025 at 12:07 PM
I've just found there was already a ticket: issuetracker.google.com/issues/44055...
October 27, 2025 at 8:57 AM
October 27, 2025 at 8:42 AM
I just found the code in NavDisplay that renders OverlayScene. No transition support at all. I guess that's a bit unexpected -> maybe that's what you mean by "more structured API between an OverlaScene and NavDisplay" :)

Thanks a lot for those answers.
October 27, 2025 at 8:42 AM
Attaching my implementation. Does anybody have an idea how to animate the backStack.removeLast()? cc @ianlake.bsky.social
October 26, 2025 at 7:25 PM
But... how can I handle "back stack" removeLast() animation? Basically, NavDisplay stops rendering my scene, and that's it. I may fake it via artificial backPress dispatch instead of removeLast, but that doesn't seem the be "the proper way".
October 26, 2025 at 7:25 PM
Putting a PredictiveBackHandler there also enables handling this animation/eases the suspending finish animation.

The initial animation is a LaunchedEffect, also not a problem.
October 26, 2025 at 7:25 PM
Reposted by Jan Skrasek
That, along with synthetic back stacks and different handling whether you are on your own task stack or another apps' task stack (which is the only time when back and up differ), is going to be the next PR after this first one.
October 10, 2025 at 9:25 PM
Sadly, it's not covering the "Up button ves Back Button" case I'm most interested in.
October 10, 2025 at 9:21 PM