Skip to content

Commit 44207ae

Browse files
authored
Deferred components (#510)
2 parents e1f490f + a4a3db8 commit 44207ae

45 files changed

Lines changed: 2532 additions & 2135 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,53 @@ Date format: DD/MM/YYYY
22

33
## [next]
44

5-
- `TreeView` updated:
5+
- **BREAKING** Removed `NavigationBody`. Use `PaneItem.body` instead ([#510](https://github.com/bdlukaa/fluent_ui/pull/510)):
6+
Before:
7+
```dart
8+
NavigationBody(
9+
pane: NavigationPane(
10+
items: [
11+
PaneItem(icon: Icon(FluentIcons.add)),
12+
PaneItem(icon: Icon(FluentIcons.add)),
13+
PaneItem(icon: Icon(FluentIcons.add)),
14+
],
15+
),
16+
content: NavigationBody(
17+
children: [
18+
_Item1(),
19+
_Item2(),
20+
_Item3(),
21+
],
22+
),
23+
),
24+
```
25+
26+
Now:
27+
```dart
28+
NavigationBody(
29+
...
30+
pane: NavigationPane(
31+
items: [
32+
PaneItem(
33+
icon: Icon(FluentIcons.add),
34+
body: _Item1(),
35+
),
36+
PaneItem(
37+
icon: Icon(FluentIcons.add),
38+
body: _Item2(),
39+
),
40+
PaneItem(
41+
icon: Icon(FluentIcons.add),
42+
body: _Item3(),
43+
),
44+
],
45+
),
46+
),
47+
```
48+
49+
You can use `NavigationView.transitionsBuilder`
50+
- Fixes memory leaks on `NavigationView`
51+
- `TreeView` updates:
652
- All items of the same depth level now have the same indentation. Before, only items with the same parent were aligned.
753
- The hitbox for the expand icon of each item now uses the item's full height and is three times wider than the actual icon. This corresponds to the implementation in the explorer of Windows 10/11.
854
- You can now choose whether the items of a TreeView should use narrow or wide spacing. The examples shown in the Microsoft documentation use a wider spacing than the implementation used in the explorer of Windows 10/11.

0 commit comments

Comments
 (0)