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

Raksha - May 20 '22 - - Dev Community

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.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player