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

提交:添加安全距离适配;

上级 504a477b
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget { class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
......
...@@ -34,7 +34,8 @@ class MyScaffold extends StatelessWidget { ...@@ -34,7 +34,8 @@ 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: body ?? body: SafeArea(
child: body ??
MyScrollView( MyScrollView(
padding: padding, padding: padding,
bottomButton: bottomButton, bottomButton: bottomButton,
...@@ -42,6 +43,7 @@ class MyScaffold extends StatelessWidget { ...@@ -42,6 +43,7 @@ class MyScaffold extends StatelessWidget {
keyboardConfig: keyboardConfig, keyboardConfig: keyboardConfig,
children: children ?? [], children: children ?? [],
), ),
),
floatingActionButton: floatingActionButton, floatingActionButton: floatingActionButton,
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论