Skip to content

Commit faea7a0

Browse files
fix: ignore of shownByDefault on left sidebar (#532)
Co-authored-by: Adrian Samoticha <86920182+Adrian-Samoticha@users.noreply.github.com>
1 parent 1824206 commit faea7a0

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.1.8]
2+
### 🛠️ Fixed 🛠️
3+
* Fixed `shownByDefault` not being respected for the left sidebar of the `MacosWindow` (thanks, [@ShayperCool](https://github.com/ShayperCool)).
4+
15
## [2.1.7]
26
### 🔄 Updated 🔄
37
* Expose `WindowMainStateListener` and implement `overrideIsMainWindow` method to allow for the window’s main state to be overridden.
@@ -28,7 +32,6 @@
2832
* pubspec.yaml allows Flutter SDK version 1.9.x, which does not support the flutter.plugin.platforms key.
2933
Please consider increasing the Flutter SDK requirement to ^1.10.0 (environment.sdk.flutter)
3034
```
31-
3235
## [2.1.1]
3336
* Fixed a bug where `MacosPulldownMenuItem` would not show an alert dialog when tapped.
3437

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ packages:
182182
path: ".."
183183
relative: true
184184
source: path
185-
version: "2.1.4"
185+
version: "2.1.8"
186186
macos_window_utils:
187187
dependency: transitive
188188
description:

lib/src/layout/window.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class _MacosWindowState extends State<MacosWindow> {
9292
double _endSidebarWidth = 0.0;
9393
double _endSidebarDragStartWidth = 0.0;
9494
double _endSidebarDragStartPosition = 0.0;
95-
bool _showSidebar = true;
95+
late bool _showSidebar = widget.sidebar?.shownByDefault ?? true;
9696
late bool _showEndSidebar = widget.endSidebar?.shownByDefault ?? false;
9797
int _sidebarSlideDuration = 0;
9898
SystemMouseCursor _sidebarCursor = SystemMouseCursors.resizeColumn;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: macos_ui
22
description: Flutter widgets and themes implementing the current macOS design language.
3-
version: 2.1.7
3+
version: 2.1.8
44
homepage: "https://macosui.dev"
55
repository: "https://github.com/GroovinChip/macos_ui"
66

0 commit comments

Comments
 (0)