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

提交:修改SafeArea位置;

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