There is an add button on Page B, onPressed, it should add a new container to add A which can be added using a widget called BuildCourseContainer
,
Add Button code:
IconButton(
onPressed: (){
},
Now here is something, I dont want to add containers in page A using list so its not an option, is there any other way?
Just use List or Array. the Button should add item to list when it clicked, then your Page will listen or build item from the List