Implement predictive back animation (#10273)

For home screen tabs, Navigator screens and most dialogs
This commit is contained in:
Ivan Iskandar
2023-12-28 23:01:01 +07:00
committed by GitHub
parent 4b208fc7ce
commit 9c120e6231
8 changed files with 510 additions and 32 deletions
@@ -40,6 +40,7 @@ class SettingsScreen(
Destination.Tracking.id -> SettingsTrackingScreen
else -> SettingsMainScreen
},
onBackPressed = null,
content = {
val pop: () -> Unit = {
if (it.canPop) {
@@ -61,6 +62,7 @@ class SettingsScreen(
Destination.Tracking.id -> SettingsTrackingScreen
else -> SettingsAppearanceScreen
},
onBackPressed = null,
) {
val insets = WindowInsets.systemBars.only(WindowInsetsSides.Horizontal)
TwoPanelBox(