fix: the new mobile toolbar doesn't work if resizeToAvoidBottomInset is true (#593)

* fix: toolbar issues

* fix: adjust the mobile toolbar when resizeToAvoidBottomInset is true
This commit is contained in:
Lucas.Xu 2023-11-16 10:05:37 +08:00 • committed by GitHub
commit e665b67c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,14 +87,15 @@ class _HomePageState extends State<HomePage> {
key: _scaffoldKey,
extendBodyBehindAppBar: PlatformExtension.isDesktopOrWeb,
drawer: _buildDrawer(context),
resizeToAvoidBottomInset: false,
appBar: AppBar(
backgroundColor: const Color.fromARGB(255, 134, 46, 247),
foregroundColor: Colors.white,
surfaceTintColor: Colors.transparent,
title: const Text('AppFlowy Editor'),
),
body: _buildBody(context),
body: SafeArea(
child: _buildBody(context),
),
);
}