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 2.0.7 #511

Merged
merged 23 commits into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f668c07
Update radio_button.dart
Abbas1Hussein Nov 19, 2023
6717da6
Update CHANGELOG.md
Abbas1Hussein Nov 19, 2023
489e047
merge for version 2.0.5
Adrian-Samoticha Jan 21, 2024
6ab3269
Merge branch 'Abbas1Hussein-fix_radio_button' into dev
Adrian-Samoticha Jan 21, 2024
6153f21
Merge branch 'macosui:dev' into dev
Adrian-Samoticha Jan 21, 2024
79447c3
Merge branch 'macosui:dev' into dev
Adrian-Samoticha May 4, 2024
08de3b7
remove default themes from example app
Adrian-Samoticha May 4, 2024
1fe890f
add accent color and main window support to `MacosThemeData`
Adrian-Samoticha May 4, 2024
e9af171
regenerate macOS theme on window state and accent color changes
Adrian-Samoticha May 4, 2024
bcb9a71
export accent color enum
Adrian-Samoticha May 4, 2024
73934dd
retrieve accent color from theme in push button
Adrian-Samoticha May 4, 2024
48d60fc
retrieve accent color from theme in sidebar items
Adrian-Samoticha May 4, 2024
8f085d8
add disabled checkbox to buttons page in example
Adrian-Samoticha May 5, 2024
ab10dfb
style the `MacosCheckbox` to be match the native checkboxes better
Adrian-Samoticha May 5, 2024
fc7e67a
add `example/devtools_options.yaml` to `.gitignore`
Adrian-Samoticha May 5, 2024
756e7d8
bump version to 2.0.7
Adrian-Samoticha May 5, 2024
a63bfd6
organize imports
Adrian-Samoticha May 5, 2024
21fc5c1
add changelog entry for version 2.0.7
Adrian-Samoticha May 5, 2024
5c216f7
fix typo
Adrian-Samoticha May 5, 2024
7f21c2d
fix typo
Adrian-Samoticha May 5, 2024
868eec1
remove `print` call
Adrian-Samoticha May 5, 2024
eacbb56
remove unnecessary imports
Adrian-Samoticha May 5, 2024
fced5dd
change colors in unit tests
Adrian-Samoticha May 5, 2024
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
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
Loading