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, + ), ), ), ); diff --git a/test/src/components/top_app_bar/golden/top_app_bar_centered.png b/test/src/components/top_app_bar/golden/top_app_bar_centered.png index ce49f585..c25bab98 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_centered.png and b/test/src/components/top_app_bar/golden/top_app_bar_centered.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_centered_actions.png b/test/src/components/top_app_bar/golden/top_app_bar_centered_actions.png index 2e6ac890..720ceb82 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_centered_actions.png and b/test/src/components/top_app_bar/golden/top_app_bar_centered_actions.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_default.png b/test/src/components/top_app_bar/golden/top_app_bar_default.png index ae2508eb..d86d34ce 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_default.png and b/test/src/components/top_app_bar/golden/top_app_bar_default.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_default_actions.png b/test/src/components/top_app_bar/golden/top_app_bar_default_actions.png index 725391c6..482097c6 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_default_actions.png and b/test/src/components/top_app_bar/golden/top_app_bar_default_actions.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_search.png b/test/src/components/top_app_bar/golden/top_app_bar_search.png index 00604a33..d4dc30ac 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_search.png and b/test/src/components/top_app_bar/golden/top_app_bar_search.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_search_active.png b/test/src/components/top_app_bar/golden/top_app_bar_search_active.png index 378baace..eede68e8 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_search_active.png and b/test/src/components/top_app_bar/golden/top_app_bar_search_active.png differ diff --git a/test/src/components/top_app_bar/golden/top_app_bar_search_centered.png b/test/src/components/top_app_bar/golden/top_app_bar_search_centered.png index e65986b0..f6c930a0 100644 Binary files a/test/src/components/top_app_bar/golden/top_app_bar_search_centered.png and b/test/src/components/top_app_bar/golden/top_app_bar_search_centered.png differ