I have this curved navigation bar but I don't know how to change the content of the container according to the index of the page. enter link description here
I found a solution: 1- Make ANY NUMBER of different screens and make Them a stateless widget for example. 2- import them to your Navigation bar screen. 3- Make a Widget and call it container Widget container;
4- Add SetState the container widget according to the index of the page to the onTap property and setState the Container Widget to The screen You want to show. 5- call your Widget container
to child of another container()
. And That's it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.