Repository navigation
4.0.0
-
BREAKING Removed
NavigationBody. UsePaneItem.bodyinstead (#510/#531):
Before:NavigationView( pane: NavigationPane( items: [ PaneItem(icon: Icon(FluentIcons.add)), PaneItem(icon: Icon(FluentIcons.add)), PaneItem(icon: Icon(FluentIcons.add)), ], ), content: NavigationBody( children: [ _Item1(), _Item2(), _Item3(), ], ), ),
Now:
NavigationView( ... pane: NavigationPane( items: [ PaneItem( icon: Icon(FluentIcons.add), body: _Item1(), ), PaneItem( icon: Icon(FluentIcons.add), body: _Item2(), ), PaneItem( icon: Icon(FluentIcons.add), body: _Item3(), ), ], ), ),
Or if you don't have a pane, you can use the content like the following:
NavigationView( content: ScaffoldPage( header: PageHeader( title: titleRow, ), content: child, ), ),
either one attribute of pane or content must not be null
Use
NavigationView.transitionsBuilderto create custom transitions -
Added
PaneItem.onTap(#533) -
BREAKING
AutoSuggestBoxdynamic type support (#441):Before:
AutoSuggestBox( items: cats.map((cat) { return AutoSuggestBoxItem( value: cat, onFocusChange: (focused) { if (focused) debugPrint('Focused $cat'); } ); }).toList(), onSelected: (item) { setState(() => selected = item); }, ),
Now:
AutoSuggestBox<String>( items: cats.map((cat) { return AutoSuggestBoxItem<String>( value: cat, label: cat, onFocusChange: (focused) { if (focused) debugPrint('Focused \$cat'); } ); }).toList(), onSelected: (item) { setState(() => selected = item); }, ),
-
Compact pane is no longer toggled when item is selected (#533).
To toggle it programatically, useNavigationViewState.toggleCompactOpenModewhen an item is tapped -
Dynamic header height for open pane (#530)
-
Fixes memory leaks on
NavigationView -
TreeViewupdates:-
All items of the same depth level now have the same indentation. Before, only items with the same parent were aligned.
-
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.
-
You can now choose whether the items of a TreeView should use narrow or wide spacing.
-
Do not invoke the tree view item on secondary tap (#526)
-
BREAKING
TreeView.onSecondaryTapis now a(TreeViewItem item, TapDownDetails details)callback:
Before:TreeView( ..., onSecondaryTap: (item, offset) async {} ),
Now:
TreeView( ..., onSecondaryTap: (item, details) { final offset = details.globalPosition; }, )
-
Expand/collape items with right and left arrow keys, respectively (#517)
-
Added
TreeView.onItemExpandToggleandTreeViewItem.onExpandToggle(#522)
-
What's Changed
- Add italian (IT) localization by @patricknicolosi in #337
- add FlyoutOpenMode secondaryPress by @nidetuzi in #334
- Add macOS support to example project by @h3x4d3c1m4l in #339
- Add Dutch (nl) l10n support by @h3x4d3c1m4l in #338
- Fix incorrect documentation for waitDuration on Tooltip by @harysuryanto in #349
- Add Traditional Chinese (zh_Hant) localization by @rk0cc in #340
- Show menu button on minimal mode when display mode is auto by @bdlukaa in #350
- Fluent app review by @bdlukaa in #351
TextBoxreview by @bdlukaa in #352- Add Persian by @xmine64 in #354
- Add
AutoSuggestBox.formby @bdlukaa in #353 - UI updates by @bdlukaa in #355
- Retry add Korean (ko) from #267 by @rk0cc in #358
- add korean(ko) localization by @Dubh3 in #267
- Date/Time pickers review by @bdlukaa in #357
- Color updates by @bdlukaa in #368
- Fix flutter.dev link by @WinXaito in #378
- Added Malay (ms) localizations to l10n by @jonsaw in #380
- Updated DropDownButton documentation by @tobiasht in #374
- Remove header space when null by @Alphamplyer in #359
- AutoSuggestBox updates by @bdlukaa in #389
- Polish translations by @madik7 in #388
- NavigationView updates by @bdlukaa in #390
- Add supported language in README.md by @rk0cc in #391
- TextBox review by @bdlukaa in #395
- [wip] Example app rework by @bdlukaa in #397
- README improvements by @phorcys420 in #400
- Example app update by @bdlukaa in #407
- add context menu by @nidetuzi in #398
- DateTimePicker update by @bdlukaa in #406
- Update Dutch translations by @h3x4d3c1m4l in #410
- Add date time localization in Chinese (both Simplified and Traditional) by @rk0cc in #416
- add japanese localization by @chari8 in #408
- Tiles update by @bdlukaa in #422
- Navigation view updates by @bdlukaa in #425
- Tabview rework by @bdlukaa in #427
- Flyouts size by @bdlukaa in #435
- Added Czech localization [cs] by @morning4coffe-dev in #439
- Top navigation update by @bdlukaa in #440
- Add Hungarian language by @RedyAu in #442
- Fix incorrect time display format in TimePicker in Chinese by @rk0cc in #445
- Padding by @bdlukaa in #447
- Use
trackColorand add innerpaddingfor Scrollbar by @bdlukaa in #356 - Rework AutoSuggestBox by @bdlukaa in #450
- Comboboxes by @bdlukaa in #454
- Close overlay when size changes by @bdlukaa in #458
- Public PaneItemKeys for support custom PaneItem by @ccl0326 in #453
- Correctly check for supported locales by @bdlukaa in #459
- Lazy loading asb by @bdlukaa in #460
- Update README's
ScaffoldPageexample by @loic-sharma in #466 - Some bug fixes by @bdlukaa in #469
- tr localization by @timurturbil in #470
- Changed source code of second combobox by @DobreRadu in #465
- Some fixes by @bdlukaa in #480
- Fix dropdown button padding issue by @loic-sharma in #476
- Interactive code snippet by @YehudaKremer in #479
- Combobox updates by @bdlukaa in #481
- Pane item expander by @bdlukaa in #299
- Update Arabic translations by @dmakwt in #488
- Live documentation by @bdlukaa in #494
- Some fixes by @bdlukaa in #495
- Focus review by @bdlukaa in #497
- fix: changelog scrollbar wrong position by @DemoJameson in #491
- [localizations] S renamed to FluentS by @bdlukaa in #503
- Fix progress indicator animation speed affected by frame rate by @DemoJameson in #502
- Make the animation of the progress ring consistent with FluentUI by @DemoJameson in #505
- Fix #482 and support to save and restore the open state by @DemoJameson in #501
- Theme change by @bdlukaa in #507
- TreeView: Fix indentation, fix size of expand-icon's hitbox, add option to choose spacing of item content by @robkri in #515
- Fix bug: The disabled TextBox blocks the focus traversal by pressing SHIFT+Tab keys by @hnbsoft in #521
- Use
flutter gen-l10n commandinstead offlutter intl pluginto generate localizations by @DemoJameson in #518 - Deferred components by @bdlukaa in #510
- Revert attribute content and add assert with pane attribute by @WinXaito in #531
- AutoSuggestBox dynamic T by @henry2man in #509
- TreeView: onExpand-callback by @robkri in #543
New Contributors
- @patricknicolosi made their first contribution in #337
- @nidetuzi made their first contribution in #334
- @harysuryanto made their first contribution in #349
- @rk0cc made their first contribution in #340
- @xmine64 made their first contribution in #354
- @Dubh3 made their first contribution in #267
- @jonsaw made their first contribution in #380
- @Alphamplyer made their first contribution in #359
- @madik7 made their first contribution in #388
- @phorcys420 made their first contribution in #400
- @chari8 made their first contribution in #408
- @morning4coffe-dev made their first contribution in #439
- @RedyAu made their first contribution in #442
- @ccl0326 made their first contribution in #453
- @loic-sharma made their first contribution in #466
- @timurturbil made their first contribution in #470
- @DobreRadu made their first contribution in #465
- @YehudaKremer made their first contribution in #479
- @DemoJameson made their first contribution in #491
- @robkri made their first contribution in #515
- @hnbsoft made their first contribution in #521
Full Changelog: v3.12.0...v4.0.0