Skip to content

Commit d0c1d87

Browse files
committed
Fix divider in window titlebar
1 parent 0e8df66 commit d0c1d87

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ class WindowTitleBar<C extends LeapSettingsBlocBaseMixin<M>,
6161
flexibleSpace: WindowFreeSpace<C, M>(),
6262
actions: [
6363
...actions,
64-
if (isDesktop && !inView)
64+
if (isDesktop && !inView) ...[
65+
if (actions.isNotEmpty) const VerticalDivider(),
6566
WindowButtons<C, M>(
66-
divider: actions.isNotEmpty,
6767
fullScreenMode: fullScreenMode,
6868
),
69+
],
6970
],
7071
);
7172
});
@@ -104,13 +105,11 @@ class WindowFreeSpace<C extends LeapSettingsBlocBaseMixin<M>,
104105

105106
class WindowButtons<C extends LeapSettingsBlocBaseMixin<M>,
106107
M extends LeapSettings> extends StatefulWidget {
107-
final bool divider;
108108
final FullScreenMode fullScreenMode;
109109
final bool updateSettings;
110110

111111
const WindowButtons({
112112
super.key,
113-
this.divider = true,
114113
this.updateSettings = true,
115114
this.fullScreenMode = FullScreenMode.enabledExitButton,
116115
});
@@ -186,7 +185,6 @@ class _WindowButtonsState<C extends LeapSettingsBlocBaseMixin<M>,
186185
child: Row(
187186
mainAxisSize: MainAxisSize.min,
188187
children: [
189-
if (widget.divider) const VerticalDivider(),
190188
Row(
191189
children: [
192190
if (fullScreen &&

0 commit comments

Comments
 (0)