Localization, Indicators, CommandBar and Flyouts
- Improves
icons.dart
formatting and its generation (#215) - Use correct color on
FilledButton
when disabled (209) - Built-in support for new languages (#216):
- English
- Spanish (reviewed by @henry2man)
- French (reviewed by @WinXaito)
- Brazilian Portuguese (reviewed by @bdlukaa)
- Russian (reviewed by @raitonoberu)
- German (reviewed by @larsb24)
- Hindi (reviewed by @alexmercerind)
- Simplified Chinese (reviewed by @zacksleo)
- Add
useInheritedMediaQuery
property toFluentApp
(#211) TreeView
updates (#255):- Optional vertical scrolling by setting
shrinkWrap
tofalse
- TreeViewItem now has a custom primary key (
value
field) - Added
onSelectionChanged
callback, called when the selection is changed
- Optional vertical scrolling by setting
- Account for enabled on pressing states (#233)
- Implement
CommandBar
(#232)- Add
DynamicOverflow
layout widget, for one-run horizontal or vertical layout with an overflow widget - Add
HorizontalScrollView
helper widget, with mouse wheel horizontal scrolling
- Add
- Long
content
widget no longer overflow inContentDialog
(#242) - Content state is no longer lost when the pane display mode is changed (#250)
- BREAKING Update indicators (#248):
-
Added
InheritedNavigationView
-
Updated sticky indicator to match the latest Win 11 UI (#173)
-
BREAKING Renamed
NavigationPane.indicatorBuilder
toNavigationPane.indicator
-
BREAKING Indicators are no longer built with functions
Before:indicatorBuilder: ({ required BuildContext context, required NavigationPane pane, required Axis axis, required Widget child, }) { if (pane.selected == null) return child; assert(debugCheckHasFluentTheme(context)); final theme = NavigationPaneTheme.of(context); final left = theme.iconPadding?.left ?? theme.labelPadding?.left ?? 0; final right = theme.labelPadding?.right ?? theme.iconPadding?.right ?? 0; return StickyNavigationIndicator( index: pane.selected!, pane: pane, child: child, color: theme.highlightColor, curve: Curves.easeIn, axis: axis, topPadding: EdgeInsets.only(left: left, right: right), ); }
Now:
indicator: StickyNavigationIndicator( color: Colors.blue.lighter, // optional ),
-
initiallyExpanded
property onExpander
works properly (#252)- BREAKING Flyout changes:
- Removed
Flyout.contentWidth
and addedFlyoutContent.constraints
. Now the content will be automatically sized and layed out according to the placement - Added
Flyout.placement
which takes aFlyoutPlacement
- Added
Flyout.openMode
which takes aFlyoutOpenMode
Flyout.controller
is no longer required. If not provided, a local controller is created to handle theFlyout.openMode
settings- Breaking
FlyoutController.open
is now a function - Added
FlyoutController.isOpen
,FlyoutController.isClosed
,FlyoutController.close()
,FlyoutController.open()
andFlyoutController.toggle()
- Breaking Removed
Popup.contentHeight
- Removed
- BREAKING Updated typography (#261):
- Renamed
Typography.standart
toTypography.fromBrightness
- Renamed
Typography
constructor toTypography.raw
- Default color for dark mode is now
const Color(0xE4000000)
- Updated default font sizes for
display
,titleLarge
,title
andsubtitle
- Renamed
TabWidthBehavior.sizeToContent
now works properly (#218)
What's Changed
- Add
useInheritedMediaQuery
toFluentApp
by @henry2man in #211 - Replace WindowButtons & Add Confirm before closing by @lijy91 in #214
- Fix disabled color foreground on FilledButton by @WinXaito in #209
- Improve navpane anim by @WinXaito in #217
- chore: bump pub score by @Ascenio in #215
- ci: enforce static analysis by @Ascenio in #227
- FluentUI Widgets Localization Support by @henry2man in #216
- Vertical scrolling for TreeView and other enhancements by @klondikedragon in #225
- Account for enabled on pressing states by @bdlukaa in #233
- Implement command bars and dynamic overflow layout by @klondikedragon in #232
- Add isCompact field to CommandBar by @klondikedragon in #235
- Window Transparency support by @bdlukaa in #237
- Restyle CommandBar Flyout by @bdlukaa in #241
- Clear button autosuggest by @bdlukaa in #240
- Dialog long text by @bdlukaa in #246
- Minimal pane by @bdlukaa in #247
- Use a key on the content by @bdlukaa in #250
- Open Expander according to initiallyExpanded by @bdlukaa in #252
- fix README by @yoehwan in #259
- Typography by @bdlukaa in #261
- Flyout rework by @bdlukaa in #253
- New StickyIndicator by @bdlukaa in #248
- Fix TabWidthBehavior.sizeToContent by @bdlukaa in #264
New Contributors
- @lijy91 made their first contribution in #214
- @Ascenio made their first contribution in #215
- @klondikedragon made their first contribution in #225
- @yoehwan made their first contribution in #259
Full Changelog: v3.9.1...v.3.10.0