Skip to content

Commit e82b9d4

Browse files
committed
Fix divider in appbar if native titlebar is enabled
1 parent 426b6af commit e82b9d4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/material_leap/lib/src/widgets/window.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,15 @@ class WindowTitleBar<C extends LeapSettingsBlocBaseMixin<M>,
7070
actions: [
7171
...actions,
7272
if (isDesktop && !inView) ...[
73-
if (actions.isNotEmpty) const VerticalDivider(),
73+
if (actions.isNotEmpty)
74+
BlocBuilder<C, M>(
75+
builder: (context, settings) {
76+
if (settings.nativeTitleBar) {
77+
return const SizedBox.shrink();
78+
}
79+
return const VerticalDivider();
80+
},
81+
),
7482
WindowButtons<C, M>(
7583
fullScreenMode: fullScreenMode,
7684
),

0 commit comments

Comments
 (0)