You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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 <groovinchip@gmail.com>
* add code formatting to documentation
Highlighted `macos_ui` as a code element.
Co-authored-by: Reuben Turner <groovinchip@gmail.com>
* add missing comma to documentation
Co-authored-by: Reuben Turner <groovinchip@gmail.com>
* change version in changelog entry to 2.0.0-beta.1
Co-authored-by: Reuben Turner <groovinchip@gmail.com>
* 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 <groovinchip@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+25-79Lines changed: 25 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,96 +226,42 @@ See the documentation for customizations and `ToolBar` examples.
226
226
## Modern window look
227
227
228
228
A new look for macOS apps was introduced in Big Sur (macOS 11). To match that look
229
-
in your Flutter app, like our screenshots, your `macos/Runner/MainFlutterWindow.swift`
230
-
file should look like this:
229
+
in your Flutter app, macos_ui relies on [macos_window_utils](https://pub.dev/packages/macos_window_utils), which requires a minimum macOS deployment target of 10.14.6. Therefore, make sure to open the `macos/Runner.xcworkspace` folder of your project using Xcode and search for `Runner.xcodeproj`. Go to `Info` > `Deployment Target` and set the `macOS Deployment Target` to `10.14.6` or above. Then, open your project's `Podfile` (if it doesn't show up in Xcode, you can find it in your project's `macos` directory via VS Code) and set the minimum deployment version in the first line to `10.14.6` or above:
Please note that if you are using a title bar (`TitleBar`) in your `MacosWindow`, you should set the `toolbarStyle` of your window to `NSWindowToolbarStyle.expanded`, in order to properly align the close, minimize, zoom window buttons:
See [this issue comment](https://github.com/flutter/flutter/issues/59969#issuecomment-916682559) for more details on the new look and explanations for how it works.
317
-
318
-
Please note that if you are using a title bar (`TitleBar`) in your `MacosWindow`, you should set the `toolbarStyle` of NSWindow to `.expanded`, in order to properly align the close, minimize, zoom window buttons. In any other case, you should keep it as `.unified`. This must be set beforehand, i.e. it cannot be switched in runtime.
264
+
In any other case, you should keep it as `NSWindowToolbarStyle.unified`.
0 commit comments