BaseContainer constructor
const
BaseContainer({
- Key? key,
- GlobalKey<
ScaffoldState> ? scaffoldKey, - required Widget child,
The root of the App
Every Screen is simply a child of the BaseContainer.
Navigations controlled by the RouteWatcher simply act by changing the child of the BaseContainer
Controlling how the bottombar is shown, the topBar and paddings are initiated by parsing
a BaseContainerOption
param to a RouteWatcher navigation method.
Example to navigate to a new screen
(){
RouteWatcher routeWatcher=Provider.of<RouteWatcher>(context);
routeWatcher.addToStack(PageMap.profile,options:BaseContainerOptions(bottomBar:true));}
This example shows a simple method to navigate to Profile Screen
Implementation
const BaseContainer({Key? key, this.scaffoldKey, required this.child})
: super(key: key);