Skip to content

Commit 05b5611

Browse files
committed
Merge branch 'dev' into push_button_control_size
# Conflicts: # CHANGELOG.md
2 parents a145a70 + 057b1b8 commit 05b5611

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [2.0.0-beta.4]
1+
## [2.0.0-beta.5]
22
🚨 Breaking Changes 🚨
33
* `PushButton` has been updated to support the `ControlSize` enum.
44
* The `buttonSize` property has been changed to `controlSize`.
@@ -8,6 +8,10 @@
88
🔄 Updated 🔄
99
* `PushButton`'s secondary and disabled colors more closely match their native counterparts.
1010

11+
## [2.0.0-beta.4]
12+
🛠️ Fixed 🛠️
13+
* `ToolBar`s in use where a `SideBar` is not present will now have their title's avoid the traffic lights (native window controls).
14+
1115
## [2.0.0-beta.3]
1216
✨ New ✨
1317
* Added support for `weekdayAbbreviations` and `monthAbbreviations` to `MacosDatePicker`.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ packages:
9797
path: ".."
9898
relative: true
9999
source: path
100-
version: "2.0.0-beta.4"
100+
version: "2.0.0-beta.5"
101101
macos_window_utils:
102102
dependency: transitive
103103
description:

lib/src/layout/window.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ class _MacosWindowState extends State<MacosWindow> {
226226
final height = constraints.maxHeight;
227227
final isAtBreakpoint = width <= (sidebar?.windowBreakpoint ?? 0);
228228
final isAtEndBreakpoint = width <= (endSidebar?.windowBreakpoint ?? 0);
229-
final canShowSidebar = _showSidebar && !isAtBreakpoint;
230-
final canShowEndSidebar = _showEndSidebar && !isAtEndBreakpoint;
229+
final canShowSidebar =
230+
_showSidebar && !isAtBreakpoint && sidebar != null;
231+
final canShowEndSidebar =
232+
_showEndSidebar && !isAtEndBreakpoint && endSidebar != null;
231233
final visibleSidebarWidth = canShowSidebar ? _sidebarWidth : 0.0;
232234
final visibleEndSidebarWidth =
233235
canShowEndSidebar ? _endSidebarWidth : 0.0;

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.0.0-beta.4
3+
version: 2.0.0-beta.5
44
homepage: "https://macosui.dev"
55
repository: "https://github.com/GroovinChip/macos_ui"
66

0 commit comments

Comments
 (0)