提交 946b6dda authored 作者: shixiaochen's avatar shixiaochen

1、MyScaffold增加右侧菜单栏-endDrawer

上级 876aae7a
...@@ -16,6 +16,7 @@ class MyScaffold extends StatelessWidget { ...@@ -16,6 +16,7 @@ class MyScaffold extends StatelessWidget {
final KeyboardActionsConfig? keyboardConfig; final KeyboardActionsConfig? keyboardConfig;
final Widget? floatingActionButton; final Widget? floatingActionButton;
final ScrollController? controller; final ScrollController? controller;
final Widget? endDrawer;
const MyScaffold({ const MyScaffold({
Key? key, Key? key,
...@@ -30,6 +31,7 @@ class MyScaffold extends StatelessWidget { ...@@ -30,6 +31,7 @@ class MyScaffold extends StatelessWidget {
this.keyboardConfig, this.keyboardConfig,
this.floatingActionButton, this.floatingActionButton,
this.controller, this.controller,
this.endDrawer,
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -37,6 +39,7 @@ class MyScaffold extends StatelessWidget { ...@@ -37,6 +39,7 @@ class MyScaffold extends StatelessWidget {
return Scaffold( return Scaffold(
appBar: appBar ?? MyPageAppBar(title: title), appBar: appBar ?? MyPageAppBar(title: title),
backgroundColor: backgroundColor ?? const Color(0xFFf2f3f3), backgroundColor: backgroundColor ?? const Color(0xFFf2f3f3),
endDrawer: endDrawer,
body: SafeArea( body: SafeArea(
child: body ?? child: body ??
MyScrollView( MyScrollView(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论