Version 2.0.0
What's Changed
🚨 Breaking Changes 🚨
-
macos_ui
has been migrated to utilize macos_window_utils under the hood, which provides the following benefits:- Window animation smoothness is drastically improved, particularly when miniaturizing and deminiaturizing the application window.
- Some visual artifacts that occurred while the window was being (de)miniaturized (such as the application's shadow going missing) no longer occur.
- The sidebar remains transparent when the app's brightness setting mismatches the OS setting.
- Wallpaper tinting is now supported.
- To migrate an existing application, please refer to the “Modern window look” section in the README.
-
Support for Flutter 3.10 and Dart 3
-
PushButton
has been updated to support theControlSize
enum.- The
buttonSize
property has been changed tocontrolSize
. - Buttons can now be any of the following sizes: mini, small, regular, or large.
- The
-
PushButton.isSecondary
is nowPushButton.secondary
. -
MacosAlertDialog
:primaryButton
andsecondaryButton
are now declared to be of typePushButton
. -
RelevanceIndicator
has been deprecated -
MacosTypography
white and black are now factory constructors calleddarkOpaque()
andlightOpaque()
to reflect
Apple's naming conventions.
✨ New ✨
MacosSwitch
has been completely rewritten and now matches the native macOS switch in appearance and behavior.- A
ControlSize
enum has been introduced, which will allow widgets to more closely match their native counterparts. MacosTypography
- You can now call
MacosTypography.of(context)
as a shorthand for retrieving the typography used in yourMacosTheme
. MacosFontWeight
allows using Apple-specific font weights likew510
,w590
, andw860
.
- You can now call
- Localization
- Added support for
weekdayAbbreviations
andmonthAbbreviations
toMacosDatePicker
. - Added support for
dateFormat
toMacosDatePicker
. - Added support for
startWeekOnMonday
toMacosDatePicker
.
- Added support for
🔄 Updated 🔄
MacosColor
has been updated with some previously missing elements.PushButton
- Now uses the correct
body
text style instead of the incorrectheadline
- Now uses the correct
PushButton
's secondary and disabled colors more closely match their native counterparts.MacosCheckbox
appearance more closely matches its native counterpart.MacosAlertDialog
primaryButton
andsecondaryButton
are now required to havecontrolSize
s ofControlSize.large
.- Docs now suggest that
appIcon
should be of size 64x64.
Toolbar
now uses the correcttitle3
text style instead of the incorrectheadline
MacosTheme
sets the global typography more efficientlyHelpButton
now sizes itself according to specificationResizablePane
can now disallow the usage of its internal scrollbar via theReziablePane.noScrollBar
constructor.
🛠️ Fixed 🛠️
- Clicking on the calendar elements in
MacosDatePicker
has better UX ToolBar
s in use where aSideBar
is not present will now have their title's avoid the traffic lights (native window controls).MacosTypography.darkOpaque()
andMacosTypography.lightOpaque()
now conform to specification by usingMacosColors.labelColor
- Ensure builds targeting web do not utilize any
macos_window_utils
code - Ensure builds targeting web are themed correctly
New Contributors
- @rxlabz made their first contribution in #398
- @eliasyishak made their first contribution in #402
- @Maksimka101 made their first contribution in #400
- @the-best-is-best made their first contribution in #426
- @bernaferrari made their first contribution in #419
Full Changelog: 1.12.2...2.0.0