DEV Community

Cover image for How to manage scroll state in a bottom tab in Jetpack compose
Raksha for Canopas Software

Posted on

How to manage scroll state in a bottom tab in Jetpack compose

Learn how to save and restore the state of composable while navigating between two composable by bottom tabs.

In this video, we used saveState & restoreState to handle the state.

.

With the help of saveStateย flag we can save the state of our composable and by using restoreState we can restore the state when we swap between bottom navigation items.

Top comments (0)