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

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

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