fix: macos app bar padding issue

This commit is contained in:
edde746
2025-10-29 10:49:52 +01:00
parent bdd39c252e
commit b310d1f169
+12 -2
View File
@@ -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,