fix: mobile toolbar UI shift (#818)
This commit is contained in:
parent
3cd2aae003
commit
d73e8893d1
2 changed files with 21 additions and 2 deletions
|
|
@ -97,7 +97,10 @@ class _HomePageState extends State<HomePage> {
|
|||
surfaceTintColor: Colors.transparent,
|
||||
title: const Text('AppFlowy Editor'),
|
||||
),
|
||||
body: SafeArea(child: _widgetBuilder(context)),
|
||||
body: SafeArea(
|
||||
maintainBottomViewPadding: true,
|
||||
child: _widgetBuilder(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,20 @@
|
|||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:example/home_page.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
if (defaultTargetPlatform == TargetPlatform.android) {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge, overlays: []);
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
const SystemUiOverlayStyle(systemNavigationBarColor: Colors.transparent),
|
||||
);
|
||||
}
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue