提交 869045d1 authored 作者: shixiaochen's avatar shixiaochen

1、appbar自定义leading

上级 7abd4be0
...@@ -8,6 +8,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget { ...@@ -8,6 +8,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
final Function()? onBack; final Function()? onBack;
final List<Widget>? actions; final List<Widget>? actions;
final bool exitApp; final bool exitApp;
final Widget? leading;
const MyPageAppBar({ const MyPageAppBar({
Key? key, Key? key,
...@@ -18,6 +19,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget { ...@@ -18,6 +19,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
this.onBack, this.onBack,
this.actions, this.actions,
this.exitApp = false, this.exitApp = false,
this.leading,
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -29,6 +31,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget { ...@@ -29,6 +31,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
primary: primary, primary: primary,
actions: actions, actions: actions,
leading: leading,
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论