This demo project demonstrates the implementation of bottom tab navigation, showcasing a UI with multiple screens accessible through a bottom navigation bar. It provides a practical example for developers to learn and apply this navigation pattern in their own projects.
Hi , When i was adapting this code for my app i faced an issue with NavigationScreens.kt , basically it was a navigation related exception error .
I solved it by using my equivalent of NavigationScreens() inside of MainActivity instead of MainScreen() . (i kept the bottom bar within the NavigationScreens() which was earlier in MainScreen()).
I think it would be a better approach as we are directly utilizing our Navigation at first instance which itself would start the homeScreen as intended . MainScreen could be removed and its components could be kept directly inside the NavigationScreens()