revise the way editor toolbar sticks to the bottom

This commit is contained in:
Filip Krawczyk 2022-08-25 23:56:11 +02:00
parent 2d7d2a64bd
commit 9ff62f86c5
1 changed files with 15 additions and 15 deletions

View File

@ -71,14 +71,16 @@ class EditorToolbar extends HookWidget {
child: visible child: visible
? Material( ? Material(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
child: SizedBox( child: SafeArea(
height: _height, child: SizedBox(
width: double.infinity, height: _height,
child: SingleChildScrollView( width: double.infinity,
scrollDirection: Axis.horizontal, child: SingleChildScrollView(
child: _ToolbarBody( scrollDirection: Axis.horizontal,
controller: controller.textEditingController, child: _ToolbarBody(
instanceHost: controller.instanceHost, controller: controller.textEditingController,
instanceHost: controller.instanceHost,
),
), ),
), ),
), ),
@ -98,13 +100,11 @@ class BottomSticky extends StatelessWidget {
const BottomSticky({required this.child}); const BottomSticky({required this.child});
@override @override
Widget build(BuildContext context) => SafeArea( Widget build(BuildContext context) => Positioned(
child: Column( bottom: 0,
mainAxisAlignment: MainAxisAlignment.spaceBetween, child: SizedBox(
children: [ width: MediaQuery.of(context).size.width,
const Spacer(), child: child,
child,
],
), ),
); );
} }