diff --git a/lib/pages/create_post/create_post.dart b/lib/pages/create_post/create_post.dart index 0ffc7a2..20a0339 100644 --- a/lib/pages/create_post/create_post.dart +++ b/lib/pages/create_post/create_post.dart @@ -134,6 +134,7 @@ class CreatePostPage extends HookWidget { ) ], ), + Toolbar.safeArea, ].spaced(6), ), ), diff --git a/lib/widgets/editor/toolbar.dart b/lib/widgets/editor/toolbar.dart index 4dbb6f9..d4bafee 100644 --- a/lib/widgets/editor/toolbar.dart +++ b/lib/widgets/editor/toolbar.dart @@ -62,12 +62,13 @@ extension on TextEditingController { class Toolbar extends HookWidget { final TextEditingController controller; + static const _height = 50.0; const Toolbar(this.controller); @override Widget build(BuildContext context) { return Container( - height: 50, + height: _height, width: double.infinity, color: Theme.of(context).cardColor, child: Material( @@ -144,6 +145,8 @@ class Toolbar extends HookWidget { ), ); } + + static Widget safeArea = const SizedBox(height: _height); } class AddLinkDialog extends HookWidget {