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

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

·

1 min read

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.