Skip to content

Commit

Permalink
fix: Top app bar padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecoomber committed Nov 20, 2024
1 parent fd9aada commit 0239f02
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions lib/src/components/top_app_bar/top_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,23 +329,26 @@ class _ZetaTopAppBarState extends State<ZetaTopAppBar> {

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,
),
),
),
);
Expand Down

0 comments on commit 0239f02

Please sign in to comment.