Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.7.1 #287

Merged
merged 37 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e3aa4c
Sidebar top (#244)
GroovinChip May 11, 2022
41c56a2
chore: update issue templates
GroovinChip May 11, 2022
de258e5
chore: update pr_prelaunch script
GroovinChip May 11, 2022
4bb29a8
Merge branch 'stable' into dev
GroovinChip May 11, 2022
e4c37d6
Flutter 3 upgrade & MacosColor update (#248)
GroovinChip May 13, 2022
ac6870c
Merge branch 'stable' into dev
GroovinChip May 13, 2022
ab47743
Starter app (#251)
GroovinChip May 13, 2022
880c308
Full screen opaque toolbar issue (closes #249) (#252)
whiplashoo May 16, 2022
eb06cc4
Merge branch 'stable' into dev
GroovinChip May 16, 2022
77778ed
Version 1.4.1 (#255)
GroovinChip May 16, 2022
ee2297f
Merge branch 'stable' into dev
GroovinChip May 16, 2022
ba99684
Merge branch 'stable' into dev
GroovinChip May 16, 2022
3f0d09e
chore: repository, homepage fields
GroovinChip May 16, 2022
3f6d9ac
Merge branch 'stable' into dev
GroovinChip May 16, 2022
1857b58
chore: update readme
GroovinChip May 16, 2022
1dbab59
feat(starter_app): Version 1.1.0
GroovinChip May 16, 2022
99cce50
feat(starter_app): multi-window support
GroovinChip May 17, 2022
a7b34dd
feat: starter_app 1.2.1
GroovinChip May 21, 2022
f6cb9cd
chore: move brick to its own repo & go back to old pana action
GroovinChip May 23, 2022
a4e85c3
Expand remaining part of row in MacosListTile (#265)
jonsaw Jun 24, 2022
6d89861
End sidebar (#267)
GroovinChip Jun 26, 2022
9b8f75d
Merge branch 'stable' into dev
GroovinChip Jun 30, 2022
098c22f
fix: Correct the placement of the leading widget in disclosure sideba…
GroovinChip Jul 1, 2022
c7719c2
chore: Update changelog
GroovinChip Jul 2, 2022
5687498
test: fix issues with date_picker_test
GroovinChip Jul 7, 2022
f09843c
Update Actions (#279)
GroovinChip Jul 7, 2022
d534f79
Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)
GroovinChip Jul 9, 2022
4f13234
Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)
GroovinChip Jul 10, 2022
fa1deed
Merge branch 'stable' into dev
GroovinChip Jul 10, 2022
1d33004
chore: fix typo in pr template
GroovinChip Jul 10, 2022
7487f97
feat: gh action to auto-generate releases on push to stable
GroovinChip Jul 10, 2022
91de6b7
Merge branch 'stable' into dev
GroovinChip Jul 10, 2022
85eaed4
chore: update release action with latest from stable
GroovinChip Jul 10, 2022
285c398
feat: add action to publish to pub
GroovinChip Jul 10, 2022
6c90a36
docs: update readme
GroovinChip Jul 9, 2022
eae4c3d
fix: 1.7.1
GroovinChip Jul 27, 2022
085c44c
Merge branch 'stable' into dev
GroovinChip Jul 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ Guides, codelabs, and other documentation can be found at https://macosui.dev

<img src="https://imgur.com/5mFQKBU.png" width="75%"/>

## 🚨 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

<details>
Expand Down Expand Up @@ -96,6 +105,7 @@ Guides, codelabs, and other documentation can be found at https://macosui.dev
- [Selectors](#selectors)
- [MacosDatePicker](#macosdatepicker)
- [MacosTimePicker](#macostimepicker)
- [MacosColorWell](#macoscolorwell)
</details>

---
Expand Down Expand Up @@ -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

<img src="https://imgur.com/RtPbRo2.png" width="50%"/>
Expand All @@ -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.
* `combined`: provides both `textual` and `graphical` interfaces.

Example usage:
```dart
MacosTimePicker(
onTimeChanged: (time) => debugPrint('$time'),
),
```

## MacosColorWell

<img src="https://imgur.com/VpK4IlM.gif" width="50%"/>

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'),
),
```
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.7.0"
version: "1.7.1"
matcher:
dependency: transitive
description:
Expand Down
4 changes: 3 additions & 1 deletion lib/src/layout/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,10 @@ class _MacosWindowState extends State<MacosWindow> {
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;
Expand Down
21 changes: 7 additions & 14 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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

Expand Down