|
1 | | -## [next] |
| 1 | +## 4.15.0 |
2 | 2 |
|
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)) |
4 | 4 | - 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)) |
5 | 5 | - 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)) |
6 | 6 | - fix: `ProgressBar` chooses the correct direction when directionality is right-to-left ([#1291](https://github.com/bdlukaa/fluent_ui/issues/1291)) |
|
13 | 13 | - Reordering items is supported via `controller.moveItem(item, newParent: target, index: 0)` |
14 | 14 | - **BREAKING** feat: `TreeViewItem.children` is now unmodifiable. Use `TreeViewController` methods (`addItem()`, `addItems()`, `removeItem()`, `moveItem()`) to modify tree structure. |
15 | 15 | - 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)) |
17 | 17 |
|
18 | 18 | ## 4.14.0 |
19 | 19 |
|
|
36 | 36 | - refactor: Encourage usage of `EdgeInsetsDirectional` instead of `EdgeInsets` |
37 | 37 | - **BREAKING CHANGE** refactor: Remove `BottomNavigationBar` and all its related widgets |
38 | 38 | - **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 | + ``` |
39 | 53 | - feat: Add latest color resources from Microsoft UI XAML. |
40 | 54 | - refactor(perf): Optimize animation handling in Scrollbar, NavigationView, Acrylic and buttons. |
41 | 55 | - refactor(perf): Reduce calls to `setState` and frames scheduling in several widgets. |
|
0 commit comments