From 6ab28d99d0bb5b2daf7a42b98cfa9253262fa3b6 Mon Sep 17 00:00:00 2001 From: AN12345 Date: Thu, 8 Dec 2022 13:47:12 -0500 Subject: [PATCH] refactor(ui_layout): update appbar component (close #78) --- .../lib/src/presentation/layouts/app_bar_layout.dart | 5 ++++- .../lib/src/presentation/layouts/frame_layout.dart | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/wyatt_ui_layout/lib/src/presentation/layouts/app_bar_layout.dart b/packages/wyatt_ui_layout/lib/src/presentation/layouts/app_bar_layout.dart index 46d82bd8..9d392e1e 100644 --- a/packages/wyatt_ui_layout/lib/src/presentation/layouts/app_bar_layout.dart +++ b/packages/wyatt_ui_layout/lib/src/presentation/layouts/app_bar_layout.dart @@ -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, ); } diff --git a/packages/wyatt_ui_layout/lib/src/presentation/layouts/frame_layout.dart b/packages/wyatt_ui_layout/lib/src/presentation/layouts/frame_layout.dart index ebe8f13b..f32b869f 100644 --- a/packages/wyatt_ui_layout/lib/src/presentation/layouts/frame_layout.dart +++ b/packages/wyatt_ui_layout/lib/src/presentation/layouts/frame_layout.dart @@ -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, -- 2.47.2