I have a screen with a BottomNavigationBar and an IndexedStack that swaps the child view based on the bottom bar index.
Everything is ok, except that all four pages are created at once, loading their data that is quite heavy and slowing down the app for some seconds.
Is there a setup that allows me to load each page only when the corresponding tab gets tapped?