4.9.0
-
fix: ¹
DropDownButton.closeAfterClickis now correctly applied. ² AddedMenuFlyoutItem.closeAfterClick, which defaults totrue. (#1016) -
fix:
MenuFlyoutSubItemdoes not close when pressed (#1037) -
fix: Make
ScaffoldPageopaque (#1048) -
fix: Scroll issue in
DatePicker. (#1054) -
feat: Add
NumberBox.textInputActionandNumberBox.onEditingComplete(#1063) -
fix:
NumberBoxdoes not calls a rebuild when it is already building (#1064) -
feat: Add
Tab.color,Tab.selectedColorandTab.outlineColorto TabView (#1068) -
feat: Added
NavigationView.onItemPressedcallback, called when the item is on tap (#1067) -
fix: Mark
MenuFlyoutItemas disabled when.onPressedisnull(#1074) -
BREAKING feat: Removed
ButtonState,ButtonStatesand their related classes. UseWidgetStateProperty,WidgetStateinstead. (#1075) Before:Button( style: ButtonStyle( shape: ButtonState.all(RoundedRectangleBorder(...)), backgroundColor: ButtonState.resolveWith((states) { if (states.isPressed) { return Colors.blue.shade900; } return Colors.blue; }), foregroundColor: ButtonState.resolveWith((states) { return ButtonState.forStates<Color>( states, disabled: Colors.grey, hovered: Colors.white.withOpacity(0.8), pressed: Colors.white.withOpacity(0.6), ); }), ), ),After:
Button( style: ButtonStyle( shape: WidgetStatePropertyAll(RoundedRectangleBorder(...)), backgroundColor: WidgetStateProperty.resolveWith((states) { if (states.isPressed) { return Colors.blue.shade900; } return Colors.blue; }), foregroundColor: WidgetStateProperty.resolveWith((states) { return WidgetStateExtension.forStates<Color>( states, disabled: Colors.grey, hovered: Colors.white.withOpacity(0.8), pressed: Colors.white.withOpacity(0.6), ); }), ), ), -
fix: Do not dismiss Scrollbar if it is still being pressed (#1077)
-
feat: Make
Taba widget that can be overridable (#1050) To create a custom Tab, you can now extendTab:class MyCustomTab extends Tab { MyCustomTab({super.key, required super.text, required super.body}); @override State<Tab> createState() => MyCustomTabState(); } class MyCustomTabState extends TabState { @override Widget build(BuildContext context) { super.build(context); return ColoredBox( color: Colors.red, child: super.build(context), ); } }Explore the
TabStatereference to see all the available methods you can override. -
feat: Deprecate
TabView.addIconDataandTabView.addIconBuilder. UseTabView.newTabIconinstead. -
fix:
TabView.closeDelayDurationdefault value is now 1 second.
New Contributors
- @franklin83diaz made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/978
- @Abbas1Hussein made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/964
- @dhafinrayhan made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/982
- @H2Sxxa made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/990
- @dmacan23 made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1004
- @thai2706 made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1005
- @dev-aniketj made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1046
- @normalllll made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1047
- @fischerscode made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1040
- @Dusk-afk made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1055
- @ClanEver made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1056
- @dmk-rib made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1068
- @mmasdivins made their first contribution in https://github.com/bdlukaa/fluent_ui/pull/1070
Full Changelog: https://github.com/bdlukaa/fluent_ui/compare/v4.8.0...v4.9.0