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

Resolve #445 #471

Merged
merged 86 commits into from
Aug 19, 2023
Merged

Resolve #445 #471

merged 86 commits into from
Aug 19, 2023

Conversation

Adrian-Samoticha
Copy link
Member

@Adrian-Samoticha Adrian-Samoticha commented Aug 7, 2023

This PR resolves #445.

PushButton now more closely mimics the look and feel of native macOS buttons:

Screenshot 2023-08-07 at 15 41 01

In addition to featuring gradients and specular highlights, it also becomes greyed out when the window loses its focus …

Screenshot 2023-08-07 at 15 42 44

… and correctly responds to the user’s preferred accent color:

image

It does currently not respect the user’s choice of the “Increase contrast” setting in the Accessibility Settings. I’d suggest tackling that point in a future issue.

Technical Details

The utils.dart file now contains a WindowMainStateListener class, allowing listening to focus changes in the window. It currently has a minor issue: It assumes that the window is focused during startup and doesn’t check if it actually is. This is likely true in a released application but may be incorrect during testing (since the app can be restarted from within VS Code or the terminal). This issue will be fixed once macosui/macos_window_utils.dart#31 lands. EDIT: This is now fixed.

Additionally, there now exists an AccentColorListener class. It is used by PushButton to retrieve the current accent color and listen to changes performed by the user.

The push-button’s pressedOpacity property and PushButtonTheme have also been deprecated, however, not all references to PushButtonTheme have been removed from the MacosThemeData class to ensure backward compatibility. I suppose they should be removed in the next breaking release, though.

Pre-launch Checklist

  • I have incremented the package version as appropriate and updated CHANGELOG.md with my changes
  • I have added/updated relevant documentation
  • I have run "optimize/organize imports" on all changed files
  • I have addressed all analyzer warnings as best I could

@mattsrobot
Copy link

Amazing work!

CHANGELOG.md Show resolved Hide resolved
}

if (isDarkModeEnabled) {
switch (accentColor) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to wonder if Dart 3 switch expressions would make this code a little less verbose? This is just a comment, not a change request.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’d be cool. I wasn’t a fan of the level of nesting in this method, either.

),
];
} else {
switch (accentColor) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar thought about Dart 3 switch expressions (also not a change request)

lib/src/utils/accent_color_listener.dart Outdated Show resolved Hide resolved
lib/src/utils/accent_color_listener.dart Outdated Show resolved Hide resolved
lib/src/utils/accent_color_listener.dart Outdated Show resolved Hide resolved
lib/src/utils/accent_color_listener.dart Outdated Show resolved Hide resolved
lib/src/utils/window_main_state_listener.dart Show resolved Hide resolved
lib/src/utils/window_main_state_listener.dart Outdated Show resolved Hide resolved
lib/src/utils/window_main_state_listener.dart Show resolved Hide resolved
Copy link
Collaborator

@GroovinChip GroovinChip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GroovinChip GroovinChip merged commit 9f006f2 into macosui:dev Aug 19, 2023
3 of 4 checks passed
GroovinChip added a commit that referenced this pull request Oct 12, 2023
* chore: account for latest Flutter:master

* fix(example): incorrect variable usage

* Version 1.11.1 (#366)

* Version 1.7.1 (#287)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

* Version 1.4.1 (#255)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

Co-authored-by: Minas Giannekas <[email protected]>

* chore: repository, homepage fields

* chore: update readme

* feat(starter_app): Version 1.1.0

* feat(starter_app): multi-window support

* feat: starter_app 1.2.1

* chore: move brick to its own repo & go back to old pana action

* Expand remaining part of row in MacosListTile (#265)

* Expand remaining part of row https://github.com/GroovinChip/macos_ui/issues/264

* Increment to version 1.4.2

* End sidebar (#267)

* chore: add missing trailing comma

* chore: improve MacosIconButton animation curve

* chore: remove false_secrets from pubspec.yaml

* feat: end sidebar

Also fixes the tests portion of the pr_prelaunch_tasks script

* feat: add "isEndSidebarShown" to MacosWindowScope

* fix: Correct the placement of the leading widget in disclosure sidebar items (#272)

* chore: Update changelog

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* Update Actions (#279)

* Update flutter_analysis.yml

* Update dart_code_metrics.yaml

* Update gh_pages.yml

* Update pana_analysis.yml

* Update codecov.yaml

* fix syntax issue

* Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: update README example for MacosTabView

* chore: fix typo in MacosSegmentedControl

* chore: fix typo in MacosSegmentedControl docstring

* test: remove explicitly setting active property of MacosTabs

Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* feat: MacosImageIcon & sidebar updates

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: fix README

* test: fix date picker test

Co-authored-by: Minas Giannekas <[email protected]>

* chore: fix typo in pr template

* feat: gh action to auto-generate releases on push to stable

* chore: update release action with latest from stable

* feat: add action to publish to pub

* docs: update readme

* Addresses #237
* Adds MacosColorWell to selectors section
* Adds code snippets for date & time pickers

* fix: 1.7.1

Fixes issue where end sidebar window breakpoint wasn’t being respected

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.3 (#293)

* Version 1.7.4 (#295)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

* Version 1.4.1 (#255)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

Co-authored-by: Minas Giannekas <[email protected]>

* chore: repository, homepage fields

* chore: update readme

* feat(starter_app): Version 1.1.0

* feat(starter_app): multi-window support

* feat: starter_app 1.2.1

* chore: move brick to its own repo & go back to old pana action

* Expand remaining part of row in MacosListTile (#265)

* Expand remaining part of row https://github.com/GroovinChip/macos_ui/issues/264

* Increment to version 1.4.2

* End sidebar (#267)

* chore: add missing trailing comma

* chore: improve MacosIconButton animation curve

* chore: remove false_secrets from pubspec.yaml

* feat: end sidebar

Also fixes the tests portion of the pr_prelaunch_tasks script

* feat: add "isEndSidebarShown" to MacosWindowScope

* fix: Correct the placement of the leading widget in disclosure sidebar items (#272)

* chore: Update changelog

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* Update Actions (#279)

* Update flutter_analysis.yml

* Update dart_code_metrics.yaml

* Update gh_pages.yml

* Update pana_analysis.yml

* Update codecov.yaml

* fix syntax issue

* Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: update README example for MacosTabView

* chore: fix typo in MacosSegmentedControl

* chore: fix typo in MacosSegmentedControl docstring

* test: remove explicitly setting active property of MacosTabs

Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* feat: MacosImageIcon & sidebar updates

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: fix README

* test: fix date picker test

Co-authored-by: Minas Giannekas <[email protected]>

* chore: fix typo in pr template

* feat: gh action to auto-generate releases on push to stable

* chore: update release action with latest from stable

* feat: add action to publish to pub

* docs: update readme

* Addresses #237
* Adds MacosColorWell to selectors section
* Adds code snippets for date & time pickers

* fix: 1.7.1

Fixes issue where end sidebar window breakpoint wasn’t being respected

* Tab view padding (#285)

* fix: use prepared title wrapped with a DefaultTextStyle instead of the raw title (#289)

* chore: fix typo

Closes #290

* feat: add `backgroundColor` to `MacosSheet` (#291)

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>

* Version 1.7.5 (#299)

* chore: fix Flutter 3.3 warnings

* Version 1.7.6 (#327)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

* Version 1.4.1 (#255)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

Co-authored-by: Minas Giannekas <[email protected]>

* chore: repository, homepage fields

* chore: update readme

* feat(starter_app): Version 1.1.0

* feat(starter_app): multi-window support

* feat: starter_app 1.2.1

* chore: move brick to its own repo & go back to old pana action

* Expand remaining part of row in MacosListTile (#265)

* Expand remaining part of row https://github.com/GroovinChip/macos_ui/issues/264

* Increment to version 1.4.2

* End sidebar (#267)

* chore: add missing trailing comma

* chore: improve MacosIconButton animation curve

* chore: remove false_secrets from pubspec.yaml

* feat: end sidebar

Also fixes the tests portion of the pr_prelaunch_tasks script

* feat: add "isEndSidebarShown" to MacosWindowScope

* fix: Correct the placement of the leading widget in disclosure sidebar items (#272)

* chore: Update changelog

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* Update Actions (#279)

* Update flutter_analysis.yml

* Update dart_code_metrics.yaml

* Update gh_pages.yml

* Update pana_analysis.yml

* Update codecov.yaml

* fix syntax issue

* Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: update README example for MacosTabView

* chore: fix typo in MacosSegmentedControl

* chore: fix typo in MacosSegmentedControl docstring

* test: remove explicitly setting active property of MacosTabs

Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* feat: MacosImageIcon & sidebar updates

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: fix README

* test: fix date picker test

Co-authored-by: Minas Giannekas <[email protected]>

* chore: fix typo in pr template

* feat: gh action to auto-generate releases on push to stable

* chore: update release action with latest from stable

* feat: add action to publish to pub

* docs: update readme

* Addresses #237
* Adds MacosColorWell to selectors section
* Adds code snippets for date & time pickers

* fix: 1.7.1

Fixes issue where end sidebar window breakpoint wasn’t being respected

* Tab view padding (#285)

* fix: use prepared title wrapped with a DefaultTextStyle instead of the raw title (#289)

* chore: fix typo

Closes #290

* feat: add `backgroundColor` to `MacosSheet` (#291)

* chore: fix Flutter 3.3 warnings

* fix: address ScrollController bug in MacosPopupButton (#300)

* fix(tests): account for Jan -> Dec & Dec -> Jan

date_picker_test.dart was failing due to not accounting for going from January to December and vice-versa.

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>

* Version 1.9.0 (#339)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

* Version 1.4.1 (#255)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

Co-authored-by: Minas Giannekas <[email protected]>

* chore: repository, homepage fields

* chore: update readme

* feat(starter_app): Version 1.1.0

* feat(starter_app): multi-window support

* feat: starter_app 1.2.1

* chore: move brick to its own repo & go back to old pana action

* Expand remaining part of row in MacosListTile (#265)

* Expand remaining part of row https://github.com/GroovinChip/macos_ui/issues/264

* Increment to version 1.4.2

* End sidebar (#267)

* chore: add missing trailing comma

* chore: improve MacosIconButton animation curve

* chore: remove false_secrets from pubspec.yaml

* feat: end sidebar

Also fixes the tests portion of the pr_prelaunch_tasks script

* feat: add "isEndSidebarShown" to MacosWindowScope

* fix: Correct the placement of the leading widget in disclosure sidebar items (#272)

* chore: Update changelog

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* Update Actions (#279)

* Update flutter_analysis.yml

* Update dart_code_metrics.yaml

* Update gh_pages.yml

* Update pana_analysis.yml

* Update codecov.yaml

* fix syntax issue

* Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: update README example for MacosTabView

* chore: fix typo in MacosSegmentedControl

* chore: fix typo in MacosSegmentedControl docstring

* test: remove explicitly setting active property of MacosTabs

Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* feat: MacosImageIcon & sidebar updates

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: fix README

* test: fix date picker test

Co-authored-by: Minas Giannekas <[email protected]>

* chore: fix typo in pr template

* feat: gh action to auto-generate releases on push to stable

* chore: update release action with latest from stable

* feat: add action to publish to pub

* docs: update readme

* Addresses #237
* Adds MacosColorWell to selectors section
* Adds code snippets for date & time pickers

* fix: 1.7.1

Fixes issue where end sidebar window breakpoint wasn’t being respected

* Tab view padding (#285)

* fix: use prepared title wrapped with a DefaultTextStyle instead of the raw title (#289)

* chore: fix typo

Closes #290

* feat: add `backgroundColor` to `MacosSheet` (#291)

* chore: fix Flutter 3.3 warnings

* fix: address ScrollController bug in MacosPopupButton (#300)

* fix(tests): account for Jan -> Dec & Dec -> Jan

date_picker_test.dart was failing due to not accounting for going from January to December and vice-versa.

* fix(plugin): Ensure the native color panel releases when closed

* Update flutter_analysis.yml

Closes #334

* Various bug fixes & minor updates (#338)

* Macos slider (#337)

* chore: run flutter format .

* chore: fix analysis

* chore: Bump version and update CHANGELOG.md

* chore: Update images to self taken ones as MacOS images are outdated

* fix: fix position offset by a small value

* fix: PR review feedback

* Update lib/src/indicators/slider.dart

---------

Co-authored-by: Reuben Turner <[email protected]>

---------

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>
Co-authored-by: Norbert Kozsir <[email protected]>

* Version 1.9.1 (#341)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

* Version 1.4.1 (#255)

* Sidebar top (#244)

* chore: refactor dir structure

* feat: Sidebar top & updated default control color

* feat(example): search results in top

* chore: bump version, changelog

* chore: run flutter pub upgrade

* Update CHANGELOG.md

* Update lib/src/layout/sidebar/sidebar.dart

Co-authored-by: Minas Giannekas <[email protected]>

* chore: update issue templates

* chore: update pr_prelaunch script

* Flutter 3 upgrade & MacosColor update (#248)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* chore: remove unused code

* Starter app (#251)

* chore: Update pubspec.yaml files to support Flutter 3

* chore: run dart fix --apply

* chore: migrate Scrollbar to Flutter 3

* chore: update flutter_lints & subsequent fixes

* feat: add missing functions to MacosColor

the Color class has a number of functions that MacosColor had not implemented

* chore: use super parameters

* chore: update changelog

* chore: tweak example app

Uses the new PlatformMenuBar. Also update product name.

* chore: small changelog tweak

* chore: run flutter format .

* chore: run dart fix --apply

* chore: run flutter format .

* chore: remove unused code in example

* chore: remove unused import

* feat: first pass at starter app brick

* chore: improve starter app brick

* chore: fix widget test in starter app

* feat: conditional prompts & running pub get

* chore: finalize brick

* chore: run flutter format

* chore: exclude starter app from analyzer

* Full screen opaque toolbar issue (closes #249) (#252)

* fix: don't show app window toolbar when in full screen

* chore: update README

* chore: update brick app window code

* chore: update pubspec and changelog

* chore: update actions

Co-authored-by: Reuben Turner <[email protected]>

Co-authored-by: Minas Giannekas <[email protected]>

* chore: repository, homepage fields

* chore: update readme

* feat(starter_app): Version 1.1.0

* feat(starter_app): multi-window support

* feat: starter_app 1.2.1

* chore: move brick to its own repo & go back to old pana action

* Expand remaining part of row in MacosListTile (#265)

* Expand remaining part of row https://github.com/GroovinChip/macos_ui/issues/264

* Increment to version 1.4.2

* End sidebar (#267)

* chore: add missing trailing comma

* chore: improve MacosIconButton animation curve

* chore: remove false_secrets from pubspec.yaml

* feat: end sidebar

Also fixes the tests portion of the pr_prelaunch_tasks script

* feat: add "isEndSidebarShown" to MacosWindowScope

* fix: Correct the placement of the leading widget in disclosure sidebar items (#272)

* chore: Update changelog

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* Update Actions (#279)

* Update flutter_analysis.yml

* Update dart_code_metrics.yaml

* Update gh_pages.yml

* Update pana_analysis.yml

* Update codecov.yaml

* fix syntax issue

* Version 1.6.0 - `MacosTabView` & `MacosSegmentedControl` (#273)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: update README example for MacosTabView

* chore: fix typo in MacosSegmentedControl

* chore: fix typo in MacosSegmentedControl docstring

* test: remove explicitly setting active property of MacosTabs

Co-authored-by: Minas Giannekas <[email protected]>

* Version 1.7.0: `MacosImageIcon` & sidebar updates (#274)

* feat: MacosTabView & MacosSegmentedControl

* chore: fixup scripts

* test: tests for segmented control & tab view

* chore: remove unused code

* chore: run flutter format .

* chore: bump code metrics

* docs: dartdoc updates

* docs: fix a documentation error

* chore: run flutter format .

* feat: MacosImageIcon & sidebar updates

* test: fix issues with date_picker_test

* Account for cases where the month and the day are the same
* Fix offstage warnings by removing tester taps that disabled the caret controls

* refactor: make active property of MacosTab optional, since it is handled via MacosSegmentedControl

* chore: fix import change

* refactor: change colors to match default native app design

* docs: update tab view screenshot in readme

* chore: fix README

* test: fix date picker test

Co-authored-by: Minas Giannekas <[email protected]>

* chore: fix typo in pr template

* feat: gh action to auto-generate releases on push to stable

* chore: update release action with latest from stable

* feat: add action to publish to pub

* docs: update readme

* Addresses #237
* Adds MacosColorWell to selectors section
* Adds code snippets for date & time pickers

* fix: 1.7.1

Fixes issue where end sidebar window breakpoint wasn’t being respected

* Tab view padding (#285)

* fix: use prepared title wrapped with a DefaultTextStyle instead of the raw title (#289)

* chore: fix typo

Closes #290

* feat: add `backgroundColor` to `MacosSheet` (#291)

* chore: fix Flutter 3.3 warnings

* fix: address ScrollController bug in MacosPopupButton (#300)

* fix(tests): account for Jan -> Dec & Dec -> Jan

date_picker_test.dart was failing due to not accounting for going from January to December and vice-versa.

* fix(plugin): Ensure the native color panel releases when closed

* Update flutter_analysis.yml

Closes #334

* Various bug fixes & minor updates (#338)

* Macos slider (#337)

* chore: run flutter format .

* chore: fix analysis

* chore: Bump version and update CHANGELOG.md

* chore: Update images to self taken ones as MacOS images are outdated

* fix: fix position offset by a small value

* fix: PR review feedback

* Update lib/src/indicators/slider.dart

---------

Co-authored-by: Reuben Turner <[email protected]>

* Adds `intialDate` to `MacosDatePicker` (#329)

* Adds `intialDate` to `MacosDatePicker`

* Bumps `macos_ui` version to `1.7.7`

* Apply suggestions from code review

* spelling correction

---------

Co-authored-by: Reuben Turner <[email protected]>

---------

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>
Co-authored-by: Norbert Kozsir <[email protected]>
Co-authored-by: Elijah Luckey <[email protected]>

* chore: update gitignore

* chore: update pr template

* chore: update contributing.md & remove scripts

* feat: update `flutter_analysis` workflow (#356)

* attempt to automate dartfmt on pr's

* finish the if condition

* add some output messages

* docs: update README

Closes #352

* docs(ToolBar): update dartdocs

Closes #351

* Bottom resizable pane (#349)

* add bottom_resizable_pane.dart file

* add test for BottomResizablePane

* incremented the package version as appropriate and updated CHANGELOG.md

* include the bottomResizable pane widget on the example app (ButtonsPage) and exports the file

* makes ResizablePane horizontally draggable

* update doc comments

* include breaking change detail in CHANGELOG.md file

* update ResizablePane test

* remove bottom_resizable_pane.dart file and his test file

* update buttons_page.dart file in example app

* fix lints

* run dart format

* set the correct parameter name of resizable pane instance in example's ButtonsPage

* Apply suggestions from code review

* tweak changelog

* dartfmt

---------

Co-authored-by: Reuben Turner <[email protected]>

* docs: add usage note regarding Flutter channel

Closes #362

* chore(actions): update `flutter_analysis.yaml`

Closes #365

* fix: SearchField overlay actions are not performed (#357)

* fix: SearchField overlay actions are not performed

See #348 for more details

* fix: run flutter pub get

* fix: add missing MacosSearchField test

* formatting tweak

---------

Co-authored-by: Reuben Turner <[email protected]>

* address lints

* chore(actions): use master channel

* disable pana check on customer_testing branch

* chore(actions): job-level "if"

* chore(actions): do not run pana action for customer_testing branch

---------

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>
Co-authored-by: Norbert Kozsir <[email protected]>
Co-authored-by: Elijah Luckey <[email protected]>
Co-authored-by: FelixMethe <[email protected]>

* When toolbar item is clicked, first pop the route and then call its callback - Fixes #346 (#381)

* fix: when a toolbar item is clicked, remove route first and then call its callback - fixes #346

* chore: update version and changelog

* feat: add support for `routerConfig` to `MacosApp.router` (#390)

* feat: add support for routerConfig to MacosApp.router

* remove required keywords in constructor

* rm ! in _buildMacosApp

* Update CHANGELOG.md

Co-authored-by: Reuben Turner <[email protected]>

---------

Co-authored-by: Reuben Turner <[email protected]>

* DCM lint updates and related fixes (#393)

* lints: add `double-literal-format` lint and fixes

* lints: add `prefer-first`, `prefer-last`, and `prefer-immediate-return`

Includes fixes

* chore: remove a redundant `async`

* fix: avoid non-const or final global state

* lints: add always-remove-listener and fix

* lints: add `avoid-unnecessary-setstate` and fixes

* lints: add `avoid-wrapping-in-padding` and fixes

* lints: add `prefer-const-border-radius` and fixes

* lints: add `prefer-correct-edge-insets-constructor` and fixes

* lints: add `use-setstate-synchronously` and fixes

* lints: remove `number-of-parameters`

* fix(MacosTextField): remove FocusNode listener instead of disposing FocusNode

* chore(actions): split out tests into their own workflow

* Fix the online gallery link

* Fix for invalid dates (#402)

* Revert "Merge branch 'customer_testing' into dev"

This reverts commit ebf1d069238a468ba1f22d053ee0781239cf8db2, reversing
changes made to a52b616f14b502de236c3ed0fb622e6abfb52b1c.

* Fix: use the `sidebar` and `endSidebar` key parameter (#400)

* Fix: use the `sidebard` and `endSidebar` key parameter

- pass sidebar key to the sidebar root widget (`AnimatedPositioned`)
- create a new sidebar `ScrollController` when the key is change

* Increment version and update changelog

* Apply suggestions from code review

* Update pubspec.lock file in example

---------

Co-authored-by: Reuben Turner <[email protected]>

* Migrate to macos_window_utils (#377)

* chore: bump Dart SDK version

* add `.vscode/settings.json` to .gitignore

* feat: add macos_window_utils

* feat: wrap side in example with `TransparentMacOSSidebar`

* feat: enable wallpaper tinting on content area

* feat: adjust macOS window brightness depending on theme

* feat: add a way to disable wallpaper tinting

Wallpaper tinting is now also disabled whenever an overlay filter is
used.

* refactor: refactor wallpaper tinted area

* fix: fix wallpaper tinting override being applied on overlay filter rebuild

* fix: do not override wallpaper tinting if no `WallpaperTintingSettingsCubit` is found

* refactor: stop relying on exceptions to check if `WallpaperTintingSettingsCubit` exists in widget tree

* change: switch from BLoC to global wallpaper tinting settings

* chore: remove unused imports

* change: make canvas color mimic `NSWindow.windowBackgroundColor`

* change: make wallpaper tinted area rebuild on layout change

* feat: make toolbar wallpaper-tinted

* doc: document `disableWallpaperTinting`

* doc: improve documentation of `disableWallpaperTinting`

Add link to #16296 and clarify that disabling wallpaper tinting is meant
to be a temporary solution.

* doc: document wallpaper tinted area

* doc: document wallpaper tinting override

* doc: document wallpaper tinting settings builder

* doc: document wallpaper tinting settings data

* change: make `numberOfWallpaperTintingOverrides` private

* doc: document global wallpaper tinting settings

* doc: fix typo

* refactor: refactor wallpaper tinted area

* feat: add `insertRepaintBoundary` property

* change: enable `insertRepaintBoundary` in toolbar

* change: enable `insertRepaintBoundary` in scaffold

* change: export wallpaper tinted area

* feat: enable wallpaper tinting on end sidebar

* feat: add `sidebarState` property to window

* fix: fix background color of end sidebar not matching canvas color when theme brightness does not match platform brightness

* fix: fix wallpaper tinting override using `deactivate` instead of `dispose`

* merge

* change: comment out swift code that hides the toolbar in fullscreen mode

* change: upgrade to macos_window_utils ^1.1.1

* feat: migrate window delegate to macos_window_utils

* change: remove commented-out and unused Swift code

* fix: fix sliver toolbar not having a backdrop filter

* docs: document toolbar's `isVisible` property

* docs: document sliver toolbar's `isVisible` property

* docs: document sliver toolbar page's `isVisible` property

* docs: document `_WallpaperTintedAreaOrBlurFilter`

* refactor: remove unused `key` parameter

* refactor: remove unused import

* readme: update “Modern window look”

* change: bump version

* changelog: add entry for version 2.0.0

* changelog: add migration hint

* merge: toolbar

* fix: remove duplicate `debugFillProperties`

* refactor: rename `pages` to `pageBuilders`

* fix: remove unused import

* fix: remove unused imports

* change: remove unnecessary `NSWindowDelegate` from `MainFlutterWindow`

* change: rename `isVisible` property to `allowWallpaperTintingOverrides` for toolbar

* change: rename `isVisible` property to `allowWallpaperTintingOverrides` for sliver toolbar

* fix: fix typo in comment

* fix: fix `disableWallpaperTinting` having no effect

* change: disable `VisualEffectSubviewContainer` when disabling wallpaper tinting in window

* fix: fix some unit tests not passing

Some unit tests were failing with the following message:
“A Timer is still pending even after the widget tree was disposed.”

The cause of that was that `VisualEffectSubviewContainer`, or more
precisely `VisualEffectSubviewContainerWithGlobalKey` is using a timer
to update its visual effect subview outside of the widget's `build`
method.

The issue is fixed by either disabling wallpaper tinting in the window
(and therefore eliminating the use of `VisualEffectSubviewContainer`)
or, in cases where that was impossible (such as the sidebar) running
`await tester.pump(Duration.zero);` to allow the timer to complete.

* remove unused import

* change default canvas color

`NSColor.windowBackgroundColor` was found to be inaccurate.
The color has instead been changed to a color that was captured using
the Digital Color Meter.

* upgrade to macos_window_utils 1.1.2

* update  “Modern window look” in readme for use with macos_window_utils 1.1.2

* change version to 2.0.0-beta.1

Co-authored-by: Reuben Turner <[email protected]>

* add code formatting to documentation

Highlighted `macos_ui` as a code element.

Co-authored-by: Reuben Turner <[email protected]>

* add missing comma to documentation

Co-authored-by: Reuben Turner <[email protected]>

* change version in changelog entry to 2.0.0-beta.1

Co-authored-by: Reuben Turner <[email protected]>

* change version in pubspec.lock

* format `window.dart`

* replace `Colors.transparent` with `MacosColors.transparent`

* document `WallpaperTintingSettingsBuilder`

* document `WallpaperTintedArea`

* implement `MacosWindowUtilsConfig`

* export `src/macos_window_utils_config.dart`

* use `MacosWindowUtilsConfig` in example

* document `MacosWindowUtilsConfig` constructor

* rename `_initMacosWindowUtils` to `_configureMacosWindowUtils` in example

* document `MacosWindowUtilsConfig` usage in readme

* replace opacity widget with repaint boundary

* improve documentation for `sidebarState`

* improve `MacosWindowUtilsConfig` documentation

* fix inconsistencies introduced by merging

* Update example/lib/main.dart

* remove ”do” prefix from field names in `MacosWindowUtilsConfig`

---------

Co-authored-by: Reuben Turner <[email protected]>

* support flutter 3.10 minimum dart3 (#426)

* Update dart_code_metrics.yaml

* Update dart_code_metrics.yaml

* Update dart_code_metrics.yaml

* Fix EnumProperty test. (#419)

Fix test.

Co-authored-by: Reuben Turner <[email protected]>

* update dependencies

* update changelog

* fix dart version constraint

* Rewritten `MacosSwitch` (#409)

* feat(controls): rewrite `MacosSwitch`

* feat(gallery): demonstrate new `MacosSwitch`

* chore: update version & changelog

* chore: update DCM

* chore: include `MacosColor` updates in changelog

* docs(MacosSwitch): update docs

* chore: some cleanup

* test: fix tests

* docs: update readme

* fix: UX of the click on the calendar elements in `MacosDatePicker` (#417)

fix: UX of the click on the calendar elements

* fix minor formatting fix

* feat: Added support for `startWeekOnMonday` to `MacosDatePicker` (#414)

* feat: Added support for `startWeekOnMonday` to `MacosDatePicker`

* Update lib/src/selectors/date_picker.dart

---------

Co-authored-by: Reuben Turner <[email protected]>

* feat: Added support for `dateFormat` to `MacosDatePicker` (#415)

Co-authored-by: Reuben Turner <[email protected]>

* feat: Added support for `weekdayAbbreviations` and `monthAbbreviations` to `MacosDatePicker` (#416)

* fix mangled conflict resolution part 1

* fix mangled PR conflict resolution part 2

* fix: remove missed state property

---------

Co-authored-by: GroovinChip <[email protected]>

* fix: `ToolBar` title not avoiding traffic lights when no sidebar is present (#441)

* fix: `ToolBar` not avoiding traffic lights when no sidebar is present

* tweak changelog

* feat: implement `ControlSize` for `PushButton` (#447)

* feat: support `ControlSize` enum in `PushButton`

* chore: clean up code

* chore: update version & changelog

* chore: adjust border radius for regular control size

* fix: border radius no longer looks choppy

* improve: disabled background color

* refactor: `isSecondary` -> `secondary`

* chore: update changelog

* docs: update top-level `PushButton` dartdoc

* docs: update readme

* chore: migrate to DCM Teams

* fix: dcm action

* fix: push button tests

* docs: update readme

* fix: checkbox appearance (#448)

* fix: checkbox appearance

* fix: checkbox tests

* Reorganize gallery, add `MacosTypography.of(context)`, and update `MacosAlertDialog` (#451)

* move colors page out of disclosure & remove disclosure

* feat: reorganize gallery

* further refine buttons page

* fix app icon and button sizes in `MacosAlertDialog`

* update version, readme, & changelog

* More gallery improvements (#457)

* chore: recreate native app

* chore: use modern app icon

* chore: improve indicators page

* chore: improve fields page

* chore: improve selectors page

* Typography improvments (#459)

* fix: use `MacosColors.labelColor` as default typography color

* chore: more accurate job step names for DCM action

* fix gallery typography bold values

* feat: Add `MacosFontWeight` so that Apple specific weights can be used

Also updates the gallery to use the new weights

* Non-scrollable `ResizablePane` (#420)

* chore: add missing trailing commas & format

* Fix broken web support, platform theming issues, and typography updates (#460)

* start fixing gallery for web

* additional platform safety, theme, and typographic fixes

* update version

* gallery: remove commented & deprecated code from `main.dart`

* 2.0: Readme updates (#461)

* docs: update readme screenshots

* chore: update gallery to match readme

* fix: `HelpButton` sizing

* chore: deprecate `RelevanceIndicator`

* update version, changelog, & remove `RelevanceIndicator` from gallery & tests

* feat: version `2.0.0` (#462)

* Merges beta changelog entries into a singular `2.0.0` entry
* Updates the version to `2.0.0`
* Fixes the codecov badge

* Update CHANGELOG.md

* Update CONTRIBUTING.md

Fixes typo in contributing doc

* Alter copy of mock_canvas to unblock moving to flutter_test

* Fix compilation errors from mock canvas copy (#468)

* Alter copy of mock_canvas to unblock moving to flutter_test

* Fix compilation errors

* changelog

* Update changelog

* run pub get

* Resolve #445 (#471)

* Remove usages of '@image' directive (#483)

* Remove usages of '@image' directive

* changelog

* Run `pub get`

---------

Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: Jon Saw <[email protected]>
Co-authored-by: Minas Giannekas <[email protected]>
Co-authored-by: st merlhin <[email protected]>
Co-authored-by: jtdLab <[email protected]>
Co-authored-by: Norbert Kozsir <[email protected]>
Co-authored-by: Elijah Luckey <[email protected]>
Co-authored-by: FelixMethe <[email protected]>
Co-authored-by: Erick Ghaumez <[email protected]>
Co-authored-by: Elias Yishak <[email protected]>
Co-authored-by: Zemlaynikin Max <[email protected]>
Co-authored-by: Adrian Samoticha <[email protected]>
Co-authored-by: Michelle Raouf <[email protected]>
Co-authored-by: Bernardo Ferrari <[email protected]>
Co-authored-by: Radosław Kłos <[email protected]>
Co-authored-by: Kate Lovett <[email protected]>
Co-authored-by: Sam Rawlins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

PushButton fidelity
3 participants