Skip to content

Commit

Permalink
Version 2.0.7 (#511)
Browse files Browse the repository at this point in the history
* Update radio_button.dart

* Update CHANGELOG.md

* remove default themes from example app

* add accent color and main window support to `MacosThemeData`

* regenerate macOS theme on window state and accent color changes

* export accent color enum

* retrieve accent color from theme in push button

* retrieve accent color from theme in sidebar items

* add disabled checkbox to buttons page in example

* style the `MacosCheckbox` to be match the native checkboxes better

* add `example/devtools_options.yaml` to `.gitignore`

* bump version to 2.0.7

* organize imports

* add changelog entry for version 2.0.7

* fix typo

* fix typo

* remove `print` call

* remove unnecessary imports

* change colors in unit tests

---------

Co-authored-by: Abbas Hussein <[email protected]>
  • Loading branch information
Adrian-Samoticha and Abbas1Hussein authored May 5, 2024
1 parent 37c95be commit de31bfe
Show file tree
Hide file tree
Showing 15 changed files with 706 additions and 152 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ metrics
coverage_report
coverage
example/macos/Flutter/GeneratedPluginRegistrant.swift
example/devtools_options.yaml
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [2.0.7]
### 🛠️ Updated 🛠️
* Made most widgets aware of the user’s accent color and window state by adding respective fields to `MacosThemeData`.
* `MacosCheckbox` has received a facelift to mimic the look and feel of native macOS checkboxes better.

## [2.0.6]
### 🛠️ Updated 🛠️
* Implemented value equality for `MacosThemeData`.
Expand Down
2 changes: 0 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ class MacosUIGalleryApp extends StatelessWidget {
final appTheme = context.watch<AppTheme>();
return MacosApp(
title: 'macos_ui Widget Gallery',
theme: MacosThemeData.light(),
darkTheme: MacosThemeData.dark(),
themeMode: appTheme.mode,
debugShowCheckedModeBanner: false,
home: const WidgetGallery(),
Expand Down
19 changes: 14 additions & 5 deletions example/lib/pages/buttons_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,20 @@ class _ButtonsPageState extends State<ButtonsPage> {
const SizedBox(height: 16),
const WidgetTextTitle2(widgetName: 'MacosCheckbox'),
const SizedBox(height: 8),
MacosCheckbox(
value: switchValue,
onChanged: (value) {
setState(() => switchValue = value);
},
Row(
children: [
MacosCheckbox(
value: switchValue,
onChanged: (value) {
setState(() => switchValue = value);
},
),
const SizedBox(width: 8),
MacosCheckbox(
value: switchValue,
onChanged: null,
),
],
),
const SizedBox(height: 16),
const WidgetTextTitle2(widgetName: 'MacosRadioButton'),
Expand Down
1 change: 1 addition & 0 deletions lib/macos_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ export 'src/theme/search_field_theme.dart';
export 'src/theme/time_picker_theme.dart';
export 'src/theme/tooltip_theme.dart';
export 'src/theme/typography.dart';
export 'src/enums/accent_color.dart';
Loading

0 comments on commit de31bfe

Please sign in to comment.