Magnus Gudmandsen
03/15/2024, 8:01 AMRafael Costa
03/15/2024, 11:32 AMRafael Costa
03/15/2024, 11:34 AMMagnus Gudmandsen
03/15/2024, 12:00 PMRafael Costa
03/15/2024, 12:00 PMStylianos Gakis
03/15/2024, 12:19 PMA > B > C > D > E
.
Let’s assume B, C, D, E
need to have this pin but A
does not.
So you are now on E
and you show the pin since pinEnteredCorrectly
is false.
If you at that point do a system back 5 times one at a time, will the user see after each back -> Pin screen
, Pin screen
, Pin screen
, Pin screen
, A screen
, Exit the app
?Rafael Costa
03/15/2024, 12:22 PMNavHost(...) {
composable("route") {
PinWrapper {
ScreenComposable()
}
}
}
Rafael Costa
03/15/2024, 12:23 PMRafael Costa
03/15/2024, 12:23 PMStylianos Gakis
03/15/2024, 12:25 PMRafael Costa
03/15/2024, 12:28 PMDestinationScope
which contains a lot of stuff, from the navController
to the destination
being wrapped. You should have everything needed to do whatever you need.Rafael Costa
03/15/2024, 12:31 PMWrapper code stuff ... {
Column {
TopAppBar()
screenContent()
}
}