File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/material_leap/lib/src/widgets Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
105106class 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 &&
You can’t perform that action at this time.
0 commit comments