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

1、appbar自定义leading

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