add safearea for toolbar

This commit is contained in:
Filip Krawczyk 2022-07-04 17:20:41 +02:00
parent 33ff99510f
commit 062a53fdd9
2 changed files with 5 additions and 1 deletions

View File

@ -134,6 +134,7 @@ class CreatePostPage extends HookWidget {
)
],
),
Toolbar.safeArea,
].spaced(6),
),
),

View File

@ -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 {