add safearea for toolbar
This commit is contained in:
parent
33ff99510f
commit
062a53fdd9
|
@ -134,6 +134,7 @@ class CreatePostPage extends HookWidget {
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Toolbar.safeArea,
|
||||||
].spaced(6),
|
].spaced(6),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -62,12 +62,13 @@ extension on TextEditingController {
|
||||||
class Toolbar extends HookWidget {
|
class Toolbar extends HookWidget {
|
||||||
final TextEditingController controller;
|
final TextEditingController controller;
|
||||||
|
|
||||||
|
static const _height = 50.0;
|
||||||
const Toolbar(this.controller);
|
const Toolbar(this.controller);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 50,
|
height: _height,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
color: Theme.of(context).cardColor,
|
color: Theme.of(context).cardColor,
|
||||||
child: Material(
|
child: Material(
|
||||||
|
@ -144,6 +145,8 @@ class Toolbar extends HookWidget {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Widget safeArea = const SizedBox(height: _height);
|
||||||
}
|
}
|
||||||
|
|
||||||
class AddLinkDialog extends HookWidget {
|
class AddLinkDialog extends HookWidget {
|
||||||
|
|
Loading…
Reference in New Issue