refactor(ui_layout): update appbar component (close #78)

This commit is contained in:
AN12345 2022-12-08 13:47:12 -05:00 committed by Gitea
parent 3aa6d03dd6
commit 33797e4dbf
2 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,10 @@ class AppBarLayout extends Layout {
@override
Widget build(BuildContext context) => Scaffold(
appBar: context.components.appBar.configure(title: title),
appBar: PreferredSize(
preferredSize: const Size.fromHeight(60),
child: context.components.appBar.configure(title: title),
),
body: body,
);
}

View File

@ -32,7 +32,10 @@ class FrameLayout extends Layout {
@override
Widget build(BuildContext context) => Scaffold(
appBar: context.components.appBar.configure(title: title),
appBar: PreferredSize(
preferredSize: const Size.fromHeight(60),
child: context.components.appBar.configure(title: title),
),
body: body,
bottomNavigationBar: context.components.bottomNavigationBar.configure(
currentIndex: currentIndex,