Commit 5388d7f
committed
refactor(ui): optimize bottom navigation behavior
This commit improves the navigation logic within `BottomNavigation` by implementing standard state preservation and restoration. This ensures that the back stack is properly managed and the state of individual tabs is maintained when switching between them.
- **refactor(ui)**: Updated `navController.navigate` in `BottomNavigation` to use `popUpTo` the home screen with `saveState = true`.
- **refactor(ui)**: Enabled `launchSingleTop` and `restoreState` to prevent multiple instances of the same destination and restore previous tab states.1 parent 3351188 commit 5388d7f
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| |||
0 commit comments