From b310d1f169a0ac0dc2b5512b09359b461debd6cd Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Wed, 29 Oct 2025 10:49:52 +0100 Subject: [PATCH] fix: macos app bar padding issue --- lib/widgets/desktop_app_bar.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/widgets/desktop_app_bar.dart b/lib/widgets/desktop_app_bar.dart index ff0ac7dc..7e7b4748 100644 --- a/lib/widgets/desktop_app_bar.dart +++ b/lib/widgets/desktop_app_bar.dart @@ -30,7 +30,12 @@ class DesktopAppBar extends StatelessWidget implements PreferredSizeWidget { @override Widget build(BuildContext context) { final appBar = AppBar( - title: title != null ? DesktopTitleBarPadding(child: title!) : null, + title: title != null + ? DesktopTitleBarPadding( + leftPadding: leading != null ? 0 : null, + child: title!, + ) + : null, actions: DesktopAppBarHelper.buildAdjustedActions(actions), leading: DesktopAppBarHelper.buildAdjustedLeading(leading), automaticallyImplyLeading: automaticallyImplyLeading, @@ -87,7 +92,12 @@ class DesktopSliverAppBar extends StatelessWidget { @override Widget build(BuildContext context) { return SliverAppBar( - title: title != null ? DesktopTitleBarPadding(child: title!) : null, + title: title != null + ? DesktopTitleBarPadding( + leftPadding: leading != null ? 0 : null, + child: title!, + ) + : null, actions: DesktopAppBarHelper.buildAdjustedActions(actions), leading: DesktopAppBarHelper.buildAdjustedLeading( leading,