I'm working on an app with this build function in the homepage:
@override
Widget build(BuildContext context) {
return CupertinoTabScaffold(
tabBar: CupertinoTabBar(
items: items(context),
),
tabBuilder: (BuildContext context, int index) {
return CupertinoTabView(
builder: (BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text('${titles[index]}'),
),
child: Material(child: Text('text')),
);
},
);
},
);
}
How can I add a Drawer widget which will show over the tabbar?
You can copy paste run full code below
I do some modification based on https://medium.com/@GaboBrandX/dribbble-challenge-1-cupertino-widgets-and-a-simple-custom-drawer-for-ios-1c3a2cd4d221
You can see working demo below
You can use
Stack
toPositioned
menu icon andAnimatedPositioned
for custom made drawerworking demo
full code