提交 d170917d authored 作者: 袁静春's avatar 袁静春

提交:修改SafeArea位置;

上级 89274d31
...@@ -34,18 +34,23 @@ class MyScaffold extends StatelessWidget { ...@@ -34,18 +34,23 @@ 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),
body: SafeArea( body: _getBodyWidget(),
bottom: false, floatingActionButton: floatingActionButton,
child: body ?? );
MyScrollView( }
_getBodyWidget() {
if(body != null) {
return SafeArea(child: body!);
} else {
return MyScrollView(
padding: padding, padding: padding,
bottomButton: bottomButton, bottomButton: bottomButton,
crossAxisAlignment: crossAxisAlignment, crossAxisAlignment: crossAxisAlignment,
keyboardConfig: keyboardConfig, keyboardConfig: keyboardConfig,
children: children ?? [], children: children ?? [],
),
),
floatingActionButton: floatingActionButton,
); );
} }
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论