diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e4d1e39..0181e334 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+## [1.7.1]
+* Fixed an issue where end sidebar window breakpoints were not respected
+
## [1.7.0]
* ✨ New
* `MacosImageIcon` widget. Identical to the `ImageIcon` from `flutter/widgets.dart` except it will obey a
diff --git a/README.md b/README.md
index 7d18b01c..5951a0a3 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,15 @@ Guides, codelabs, and other documentation can be found at https://macosui.dev
+## 🚨 Usage notes
+pub.dev shows that `macos_ui` only supports macOS. This is because `macos_ui` calls some native code, and therefore
+specifies macOS as a plugin platform in the `pubspec.yaml` file. `macos_ui` _will_ work on any platform that
+Flutter supports, **but you will get best results on macOS**.
+
+The features of `macos_ui` that will _not_ work on platforms other than macOS due to calling native code are:
+* The `MacosColors.controlAccentColor()` function
+* The `MacosColorWell` widget
+
## Contents
@@ -96,6 +105,7 @@ Guides, codelabs, and other documentation can be found at https://macosui.dev
- [Selectors](#selectors)
- [MacosDatePicker](#macosdatepicker)
- [MacosTimePicker](#macostimepicker)
+ - [MacosColorWell](#macoscolorwell)
---
@@ -894,6 +904,13 @@ There are three styles of `MacosDatePickers`:
calendar-like interface to select a date.
* `combined`: provides both `textual` and `graphical` interfaces.
+Example usage:
+```dart
+MacosDatePicker(
+ onDateChanged: (date) => debugPrint('$date'),
+),
+```
+
## MacosTimePicker
@@ -906,4 +923,28 @@ There are three styles of `MacosTimePickers`:
This is useful when space in your app is constrained.
* `graphical`: a visual time picker where the user can move the hands of a
clock-like interface to select a time.
-* `combined`: provides both `textual` and `graphical` interfaces.
\ No newline at end of file
+* `combined`: provides both `textual` and `graphical` interfaces.
+
+Example usage:
+```dart
+MacosTimePicker(
+ onTimeChanged: (time) => debugPrint('$time'),
+),
+```
+
+## MacosColorWell
+
+
+
+Lets the user choose a color via the native macOS color picker.
+
+You can choose which mode to launch the picker in using the `ColorPickerMode` enum. The default is `ColorPickerMode.wheel`
+
+🚨 This widget will not work on platforms other than macOS!
+
+Example usage:
+```dart
+MacosColorWell(
+ onColorSelected: (color) => debugPrint('$color'),
+),
+```
diff --git a/example/pubspec.lock b/example/pubspec.lock
index a3e1e90b..f9a68fd6 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
- version: "1.7.0"
+ version: "1.7.1"
matcher:
dependency: transitive
description:
diff --git a/lib/src/layout/window.dart b/lib/src/layout/window.dart
index 3baafa9a..6769a9de 100644
--- a/lib/src/layout/window.dart
+++ b/lib/src/layout/window.dart
@@ -176,8 +176,10 @@ class _MacosWindowState extends State {
final width = constraints.maxWidth;
final height = constraints.maxHeight;
final isAtBreakpoint = width <= (widget.sidebar?.windowBreakpoint ?? 0);
+ final isAtEndBreakpoint =
+ width <= (widget.endSidebar?.windowBreakpoint ?? 0);
final canShowSidebar = _showSidebar && !isAtBreakpoint;
- final canShowEndSidebar = _showEndSidebar && !isAtBreakpoint;
+ final canShowEndSidebar = _showEndSidebar && !isAtEndBreakpoint;
final visibleSidebarWidth = canShowSidebar ? _sidebarWidth : 0.0;
final visibleEndSidebarWidth =
canShowEndSidebar ? _endSidebarWidth : 0.0;
diff --git a/pubspec.lock b/pubspec.lock
index 810a1738..75b81a34 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -7,21 +7,21 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
- version: "31.0.0"
+ version: "43.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
- version: "2.8.0"
+ version: "4.3.1"
analyzer_plugin:
dependency: transitive
description:
name: analyzer_plugin
url: "https://pub.dartlang.org"
source: hosted
- version: "0.8.0"
+ version: "0.10.0"
ansicolor:
dependency: transitive
description:
@@ -64,13 +64,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
- cli_util:
- dependency: transitive
- description:
- name: cli_util
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.3.5"
clock:
dependency: transitive
description:
@@ -119,14 +112,14 @@ packages:
name: dart_code_metrics
url: "https://pub.dartlang.org"
source: hosted
- version: "4.16.0"
+ version: "4.17.0"
dart_style:
dependency: transitive
description:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.1"
+ version: "2.2.3"
fake_async:
dependency: transitive
description:
@@ -386,7 +379,7 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
- version: "1.20.2"
+ version: "1.21.1"
test_api:
dependency: transitive
description:
@@ -400,7 +393,7 @@ packages:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
- version: "0.4.11"
+ version: "0.4.13"
typed_data:
dependency: transitive
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index d53c1721..53cd6f60 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
-version: 1.7.0
+version: 1.7.1
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"
@@ -15,7 +15,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
- dart_code_metrics: ^4.16.0
+ dart_code_metrics: ^4.17.0
flutter_lints: ^2.0.1
mocktail: ^0.3.0