In this video, I'll show you three(3) ways you could to persist UI state that uses a BottomNavigationBar.
We would persist both the local state and the scroll positions using different approaches.
You'll learn the pros and cons of each method.
Source code: https://github.com/fleepgeek/flutter-...
Introduction 00:00
Using the IndexedStackWidget 01:27
Using PageStorage class 02:57
Using the AutomaticKeepAliveClientMixin 07:31