From 0239f02423b537dd79a973500144e6fdeb8c287c Mon Sep 17 00:00:00 2001 From: mikecoomber Date: Wed, 20 Nov 2024 15:12:09 +0000 Subject: [PATCH] fix: Top app bar padding --- .../components/top_app_bar/top_app_bar.dart | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/lib/src/components/top_app_bar/top_app_bar.dart b/lib/src/components/top_app_bar/top_app_bar.dart index 07030848..107caf1d 100644 --- a/lib/src/components/top_app_bar/top_app_bar.dart +++ b/lib/src/components/top_app_bar/top_app_bar.dart @@ -329,23 +329,26 @@ class _ZetaTopAppBarState extends State { return ZetaRoundedScope( rounded: context.rounded, - child: Padding( - padding: EdgeInsets.symmetric(horizontal: spacing.minimum), - child: AppBar( - elevation: 0, - scrolledUnderElevation: 0, - backgroundColor: colors.surfacePrimary, - iconTheme: IconThemeData(color: colors.iconDefault), - leading: leading, - toolbarHeight: spacing.xl_9, - automaticallyImplyLeading: widget.automaticallyImplyLeading, - surfaceTintColor: Colors.transparent, - centerTitle: widget.type == ZetaTopAppBarType.centered, - titleTextStyle: widget.titleTextStyle == null - ? ZetaTextStyles.bodyLarge.copyWith(color: colors.textDefault) - : widget.titleTextStyle!.copyWith(color: colors.textDefault), - title: title, - actions: actions, + child: ColoredBox( + color: colors.surfaceDefault, + child: Padding( + padding: EdgeInsets.symmetric(horizontal: spacing.minimum), + child: AppBar( + elevation: 0, + scrolledUnderElevation: 0, + backgroundColor: colors.surfacePrimary, + iconTheme: IconThemeData(color: colors.iconDefault), + leading: leading, + toolbarHeight: spacing.xl_9, + automaticallyImplyLeading: widget.automaticallyImplyLeading, + surfaceTintColor: Colors.transparent, + centerTitle: widget.type == ZetaTopAppBarType.centered, + titleTextStyle: widget.titleTextStyle == null + ? ZetaTextStyles.bodyLarge.copyWith(color: colors.textDefault) + : widget.titleTextStyle!.copyWith(color: colors.textDefault), + title: title, + actions: actions, + ), ), ), );