Skip to content

Commit 169fa1f

Browse files
committed
chore: Bump version
1 parent 55d2cc0 commit 169fa1f

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## [next]
1+
## 4.15.0
22

3-
- fix: `MenuFlyout` no longer throws `TypeError` when calling `findRenderObject` on sub-items ([#1337](https://github.com/bdlukaa/fluent_ui/issues/1337))
3+
- fix: `MenuFlyout` no longer throws `TypeError` on sub-items ([#1337](https://github.com/bdlukaa/fluent_ui/issues/1337))
44
- feat: Controls now respond to `VisualDensity` from `FluentThemeData` for compact sizing. Use `FluentThemeData(visualDensity: VisualDensity.compact)` to enable compact mode ([#1175](https://github.com/bdlukaa/fluent_ui/issues/1175))
55
- fix: `NavigationView` no longer throws `BoxConstraints has a negative minimum height` when header and menu button are both absent ([#1334](https://github.com/bdlukaa/fluent_ui/issues/1334))
66
- fix: `ProgressBar` chooses the correct direction when directionality is right-to-left ([#1291](https://github.com/bdlukaa/fluent_ui/issues/1291))
@@ -13,7 +13,7 @@
1313
- Reordering items is supported via `controller.moveItem(item, newParent: target, index: 0)`
1414
- **BREAKING** feat: `TreeViewItem.children` is now unmodifiable. Use `TreeViewController` methods (`addItem()`, `addItems()`, `removeItem()`, `moveItem()`) to modify tree structure.
1515
- feat: `TitleBar` now supports double-click callback to maximize or restore the window ([#1298](https://github.com/bdlukaa/fluent_ui/issues/1298))
16-
- fix: `TitleBar`'s `isBackButtonEnabled` now works correctly ([#1298](https://github.com/bdlukaa/fluent_ui/issues/1298))
16+
- fix: Correctly apply `TitleBar`'s `isBackButtonEnabled` ([#1298](https://github.com/bdlukaa/fluent_ui/issues/1298))
1717

1818
## 4.14.0
1919

@@ -36,6 +36,20 @@
3636
- refactor: Encourage usage of `EdgeInsetsDirectional` instead of `EdgeInsets`
3737
- **BREAKING CHANGE** refactor: Remove `BottomNavigationBar` and all its related widgets
3838
- **MINOR BREAKING** refactor: Remove `Brightness.isLight`, `Brightness.isDark` and `Brightness.opposite` extension methods. Use `switch` statements instead.
39+
Before:
40+
```dart
41+
final theme = FluentTheme.of(context);
42+
final color = theme.brightness.isDark ? Colors.white : Colors.black;
43+
```
44+
45+
After:
46+
```dart
47+
final theme = FluentTheme.of(context);
48+
final color = switch (theme.brightness) {
49+
Brightness.light => Colors.black,
50+
Brightness.dark => Colors.white,
51+
};
52+
```
3953
- feat: Add latest color resources from Microsoft UI XAML.
4054
- refactor(perf): Optimize animation handling in Scrollbar, NavigationView, Acrylic and buttons.
4155
- refactor(perf): Reduce calls to `setState` and frames scheduling in several widgets.

example/lib/main.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,16 @@ class _MyHomePageState extends State<MyHomePage> with WindowListener {
216216
),
217217
captionControls: const WindowButtons(),
218218
onDragStarted: !kIsWeb ? windowManager.startDragging : null,
219+
onDoubleTap: !kIsWeb
220+
? () async {
221+
final isMaximized = await windowManager.isMaximized();
222+
if (isMaximized) {
223+
windowManager.restore();
224+
} else {
225+
windowManager.maximize();
226+
}
227+
}
228+
: null,
219229
),
220230
pane: NavigationPane(
221231
selected: _index,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fluent_ui
22
description: Implements Microsoft's Windows User Interface in Flutter.
3-
version: 4.14.0
3+
version: 4.15.0
44
homepage: https://bdlukaa.github.io/fluent_ui/#/
55
repository: https://github.com/bdlukaa/fluent_ui
66
issue_tracker: https://github.com/bdlukaa/fluent_ui/issues

0 commit comments

Comments
 (0)