提交 ea42cd1d authored 作者: shixiaochen's avatar shixiaochen

1、修改 StateLayout

上级 a33c9b33
......@@ -15,7 +15,11 @@ class StateLayout extends StatefulWidget {
class _StateLayoutState extends State<StateLayout> {
@override
Widget build(BuildContext context) {
return widget.type == StateType.loading ? _loadingWidget() : _otherWidget();
return SizedBox(
width: double.infinity,
child:
widget.type == StateType.loading ? _loadingWidget() : _otherWidget(),
);
}
Widget _loadingWidget() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论