I am new to flutter and recently I am implementing bottom navigation bar for the first time.
So As any of the general apps , I want to achieve a screens which can be navigated using bottom navigation bar and each screen has its own Appbar and all stuff ( in short Scaffold widget ).
But as bottom navigation bar itself is wrapped inside Scaffold and I have read somewhere that it's advisable not to nest Scaffold widgets.
So in this case , is there any alternate ways to do so or How can I achieve this ?.
Thank you :)
you can make only one scaffold for your 3 or 4 or 5 screens
here
onTap
method navigates your screen. you don't need navigator.push or navigator.pushNamed to navigate the screen.