📅  最后修改于: 2022-03-11 14:55:49.527000             🧑  作者: Mango
class MyDrawer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Drawer(...);
}
}
---------------------------------------------------------
And then when using it in each page:
Scaffold(
drawer: MyDrawer(...),
...
)