提交 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,14 +34,16 @@ class MyScaffold extends StatelessWidget { ...@@ -34,14 +34,16 @@ 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(
MyScrollView( child: body ??
padding: padding, MyScrollView(
bottomButton: bottomButton, padding: padding,
crossAxisAlignment: crossAxisAlignment, bottomButton: bottomButton,
keyboardConfig: keyboardConfig, crossAxisAlignment: crossAxisAlignment,
children: children ?? [], keyboardConfig: keyboardConfig,
), children: children ?? [],
),
),
floatingActionButton: floatingActionButton, floatingActionButton: floatingActionButton,
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论