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

release: Version 1.10.0 #355

Merged
merged 55 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 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
92f0b00
Tab view padding (#285)
stMerlHin Aug 14, 2022
4f538ef
fix: use prepared title wrapped with a DefaultTextStyle instead of th…
jtdLab Aug 15, 2022
53c1d24
chore: fix typo
GroovinChip Aug 17, 2022
1bd9180
feat: add `backgroundColor` to `MacosSheet` (#291)
GroovinChip Aug 17, 2022
b0efefa
chore: fix Flutter 3.3 warnings
GroovinChip Sep 5, 2022
d6d4a27
fix: address ScrollController bug in MacosPopupButton (#300)
GroovinChip Sep 10, 2022
6e17403
fix(tests): account for Jan -> Dec & Dec -> Jan
GroovinChip Jan 14, 2023
79b89c5
fix(plugin): Ensure the native color panel releases when closed
GroovinChip Jan 25, 2023
13fdb43
Update flutter_analysis.yml
GroovinChip Jan 27, 2023
9894aba
Various bug fixes & minor updates (#338)
GroovinChip Feb 2, 2023
ced5193
Macos slider (#337)
Norbert515 Feb 3, 2023
2a9fc25
Adds `intialDate` to `MacosDatePicker` (#329)
Luckey-Elijah Feb 3, 2023
7979172
feat: implement `MacosDisclosureButton` (#326)
Umar1312 Feb 4, 2023
997abc2
chore: update `.gitignore`
GroovinChip Feb 6, 2023
e88afbd
docs(MacosApp): fix constructor docs error
GroovinChip Feb 7, 2023
9f8e372
make CapacityIndicator work with other values of splits, not only spl…
schilken Feb 11, 2023
e08ac84
Scrollbar overhaul & more (#342)
GroovinChip Feb 13, 2023
17982c8
Merge branch 'stable' into dev
GroovinChip Feb 13, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/dart_code_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3

- name: Run Dart Code Metrics
uses: dart-code-checker/dart-code-metrics-action@v2
uses: dart-code-checker/dart-code-metrics-action@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_comment: true
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
.pub-cache/
.pub/
build/
.fvm/
metrics

# Android related
**/android/**/gradle-wrapper.jar
Expand Down
24 changes: 18 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [1.10.0]
🚨 Breaking Changes 🚨
* `MacosScrollbar` has been completely overhauled and now resembles the native macOS scrollbar in appearance and
behavior. Previously, it wrapped the material scrollbar, and now creates a custom scrollbar that extends
`RawScrollbar`. This resulted in the removal of several material-based properties for the scrollbar, and
`ContentArea.builder` is once again a `ScrollableWidgetBuilder`! 🎉
* Removed material-based scrollbar properties from `MacosScrollbarThemeData`

Other changes:
* Added implementation of `MacosDisclosureButton`
* Fixed a bug where `CapacityIndicator` only worked correctly for splits = 10

## [1.9.1]
* Adds optional `initialDate` to `MacosDatePicker`

Expand All @@ -7,14 +19,14 @@
## [1.8.0]
🚨 Breaking Changes 🚨
* `ContentArea.builder` has been changed from a `ScrollableWidgetBuilder` to a `WidgetBuilder` due to
changes in Flutter 3.7. The `MacosScrollBar` widget needs to undergo radical changes in order to achieve the
changes in Flutter 3.7. The `MacosScrollbar` widget needs to undergo radical changes in order to achieve the
native macOS scrollbar look and feel in the future, so this will be revisited at that time.

Other changes
Other changes:
* Per Flutter 3.7.0: Replace deprecated `MacosTextField.toolbarOptions` with `MacosTextField.contextMenuBuilder`
* Ensure the color panel releases when it is closed
* Avoid render overflows in the `Sidebar` when the window height is resized below a certain threshold ([#325](https://github.com/GroovinChip/macos_ui/issues/325))
* Update `MacosScrollBar.thumbVisibility` with the latest change introduced in Flutter 3.7
* Update `MacosScrollbar.thumbVisibility` with the latest change introduced in Flutter 3.7
* Update `README.md` to address issues [#325](https://github.com/GroovinChip/macos_ui/issues/325) & [#332](https://github.com/GroovinChip/macos_ui/issues/332)

## [1.7.6]
Expand Down Expand Up @@ -238,7 +250,7 @@ leading widget, and the font size of the item's label widget according to the gi
* Added `==` and `hashCode` to various classes

## [0.7.1]
* Add generics support to `MacosRadioButton` - Thank you [Sacha Arbonel](https://github.com/sachaarbonel)!
* Add generics support to `MacosRadioButton` - Thank you, [Sacha Arbonel](https://github.com/sachaarbonel)!

## [0.7.0+2]
* Add note in docs that a `Builder` is required for manual sidebar toggling to work.
Expand Down Expand Up @@ -295,7 +307,7 @@ leading widget, and the font size of the item's label widget according to the gi
* `Switch` -> `MacosSwitch`

## [0.2.4]
* Fix textfield prefix icon alignment
* Fix text field prefix icon alignment

## [0.2.3]
* Add `canvasColor` to `MacosThemeData`. `Scaffold` now uses this as its default background color.
Expand Down Expand Up @@ -327,7 +339,7 @@ leading widget, and the font size of the item's label widget according to the gi
* Updated the theme api
* Properties in `MacosThemeData` and in `Typography` can't be null
* Renamed `DynamicColorX` to `MacosDynamicColor`
* Added the method `lerp` on all theme datas.
* Added the method `lerp` on all theme data classes.

## [0.1.1]
* Implemented `Label` ([#61](https://github.com/GroovinChip/macos_ui/issues/61))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Guides, codelabs, and other documentation can be found at https://macosui.dev
[![pub package](https://img.shields.io/pub/v/macos_ui.svg)](https://pub.dev/packages/macos_ui)
[![pub package](https://img.shields.io/pub/publisher/macos_ui.svg)](https://pub.dev/packages/macos_ui)

[![Flutter Analysis](https://github.com/GroovinChip/macos_ui/actions/workflows/flutter_analysis.yml/badge.svg)](https://github.com/GroovinChip/macos_ui/actions/workflows/flutter_analysis.yml)
[![Flutter Analysis](https://github.com/GroovinChip/macos_ui/actions/workflows/flutter_analysis.yml/badge.svg?branch=stable)](https://github.com/GroovinChip/macos_ui/actions/workflows/flutter_analysis.yml)
[![Pana Analysis](https://github.com/GroovinChip/macos_ui/actions/workflows/pana_analysis.yml/badge.svg)](https://github.com/GroovinChip/macos_ui/actions/workflows/pana_analysis.yml)
[![codecov](https://github.com/GroovinChip/macos_ui/actions/workflows/codecov.yaml/badge.svg)](https://github.com/GroovinChip/macos_ui/actions/workflows/codecov.yaml)
[![codecov](https://codecov.io/gh/GroovinChip/macos_ui/branch/dev/graph/badge.svg?token=1SZGEVVMCH)](https://codecov.io/gh/GroovinChip/macos_ui)
Expand Down
12 changes: 11 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ analyzer:
plugins:
- dart_code_metrics
exclude:
- starter_app/**
- test/mock_canvas.dart
- test/recording_canvas.dart

dart_code_metrics:
metrics:
Expand All @@ -25,3 +26,12 @@ dart_code_metrics:
order:
- constructors
- public_fields
- private-fields
widgets-order:
- const fields
- init-state-method
- did-change-dependencies-method
- did-update-widget-method
- private-methods
- dispose-method
- build-method
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ class _WidgetGalleryState extends State<WidgetGallery> {
],
),
minWidth: 200,
builder: (context, _) {
builder: (context, scrollController) {
return SidebarItems(
currentIndex: pageIndex,
onChanged: (i) => setState(() => pageIndex = i),
scrollController: ScrollController(),
scrollController: scrollController,
itemSize: SidebarItemSize.large,
items: [
const SidebarItem(
Expand Down
24 changes: 21 additions & 3 deletions example/lib/pages/buttons_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class _ButtonsPageState extends State<ButtonsPage> {
String popupValue = 'One';
String languagePopupValue = 'English';
bool switchValue = false;
bool isDisclosureButtonPressed = false;
final _tabController = MacosTabController(initialIndex: 0, length: 3);

@override
Expand Down Expand Up @@ -70,9 +71,9 @@ class _ButtonsPageState extends State<ButtonsPage> {
},
),
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
// controller: _,
controller: scrollController,
padding: const EdgeInsets.all(20),
child: Column(
children: [
Expand All @@ -92,6 +93,23 @@ class _ButtonsPageState extends State<ButtonsPage> {
],
),
const SizedBox(height: 20),
const Text('MacosDisclosureButton'),
const SizedBox(height: 8),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
MacosDisclosureButton(
isPressed: isDisclosureButtonPressed,
onPressed: () {
debugPrint('click');
setState(() {
isDisclosureButtonPressed =
!isDisclosureButtonPressed;
});
}),
],
),
const SizedBox(height: 20),
const Text('MacosIconButton'),
const SizedBox(height: 8),
Row(
Expand Down Expand Up @@ -150,7 +168,7 @@ class _ButtonsPageState extends State<ButtonsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, _) {
return Center(
child: PushButton(
buttonSize: ButtonSize.large,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/colors_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _ColorsPageState extends State<ColorsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
padding: const EdgeInsets.all(20),
child: Column(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/dialogs_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class _DialogsPageState extends State<DialogsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
padding: const EdgeInsets.all(20),
child: Center(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/fields_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _FieldsPageState extends State<FieldsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
padding: const EdgeInsets.all(20),
child: Column(
Expand Down
11 changes: 6 additions & 5 deletions example/lib/pages/indicators_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,21 @@ class _IndicatorsPageState extends State<IndicatorsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
padding: const EdgeInsets.all(20),
child: Column(
children: [
CapacityIndicator(
value: sliderValue,
onChanged: (v) => setState(() => sliderValue = v),
value: capacitorValue,
onChanged: (v) => setState(() => capacitorValue = v),
splits: 20,
discrete: true,
),
const SizedBox(height: 20),
CapacityIndicator(
value: sliderValue,
onChanged: (v) => setState(() => sliderValue = v),
value: capacitorValue,
onChanged: (v) => setState(() => capacitorValue = v),
),
const SizedBox(height: 20),
MacosSlider(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/pages/selectors_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class _SelectorsPageState extends State<SelectorsPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, scrollController) {
return SingleChildScrollView(
// controller: scrollController,
controller: scrollController,
padding: const EdgeInsets.all(20),
child: Column(
children: [
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/tabview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class _TabViewPageState extends State<TabViewPage> {
),
children: [
ContentArea(
builder: (context) {
builder: (context, _) {
return Padding(
padding: const EdgeInsets.all(24.0),
child: MacosTabView(
Expand Down
40 changes: 21 additions & 19 deletions example/lib/pages/toolbar_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,26 +156,28 @@ class _ToolbarPageState extends State<ToolbarPage> {
],
),
children: [
ContentArea(builder: (context) {
return SingleChildScrollView(
padding: const EdgeInsets.all(30),
child: Center(
child: Column(
children: const [
Text(
"The toolbar appears below the title bar of the macOS app or integrates with it.",
textAlign: TextAlign.center,
),
SizedBox(height: 20.0),
Text(
"It provides convenient access to frequently used commands and features.",
textAlign: TextAlign.center,
),
],
ContentArea(
builder: (context, scrollController) {
return SingleChildScrollView(
padding: const EdgeInsets.all(30),
child: Center(
child: Column(
children: const [
Text(
"The toolbar appears below the title bar of the macOS app or integrates with it.",
textAlign: TextAlign.center,
),
SizedBox(height: 20.0),
Text(
"It provides convenient access to frequently used commands and features.",
textAlign: TextAlign.center,
),
],
),
),
),
);
}),
);
},
),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.9.1"
version: "1.10.0"
matcher:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion lib/macos_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ library macos_ui;

export 'src/buttons/back_button.dart';
export 'src/buttons/checkbox.dart';
export 'src/buttons/disclosure_button.dart';
export 'src/buttons/help_button.dart';
export 'src/buttons/icon_button.dart';
export 'src/buttons/popup_button.dart';
Expand All @@ -36,7 +37,7 @@ export 'src/indicators/capacity_indicators.dart';
export 'src/indicators/progress_indicators.dart';
export 'src/indicators/rating_indicator.dart';
export 'src/indicators/relevance_indicator.dart';
export 'src/indicators/scrollbar.dart';
export 'src/layout/scrollbar.dart';
export 'src/indicators/slider.dart';
export 'src/labels/label.dart';
export 'src/labels/tooltip.dart';
Expand Down
12 changes: 6 additions & 6 deletions lib/src/buttons/back_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ class MacosBackButtonState extends State<MacosBackButton>
_opacityTween.end = 1.0;
}

@override
void dispose() {
_animationController.dispose();
super.dispose();
}

@visibleForTesting
bool buttonHeldDown = false;

Expand Down Expand Up @@ -129,6 +123,12 @@ class MacosBackButtonState extends State<MacosBackButton>
});
}

@override
void dispose() {
_animationController.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) {
final bool enabled = widget.enabled;
Expand Down
Loading