DEV Community

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

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay