Practical Guide to Jetpack Compose Navigation - NavArgs + Top + Bottom App Bar

Опубликовано: 22 Апрель 2026
на канале: Oday
1,956
53

0:00 Scaffold
7:04 Scaffold state
11:18 Scaffold with when
18:14 Scaffold state with when

In this video I go over 4 proposed solutions to the problem of building a flexible navigation mechanism for 6 screens, 2 main ones in a bottom bar and 4 side screens accessible from the main screens.

The first solution gives each screen its own Scaffold.

The second solution gives each screen a state variable that the primary Scaffold reads from.

The third solution keeps 1 Scaffold and tries to predict what all the screens will want before they are created.

The final solution is the one I went for in my project and it's a combination of both 2 and 3, some screens mutate a scaffold state object and other screens are supplied with what they need before they are created.

GitHub repository: https://github.com/Odaym/EachScaffold