Unclaimed project
Are you a maintainer of fluent_ui? Claim this project to take control of your public changelog and roadmap.
fix: Scroll issue in DatePicker. (#1054)
feat: Add NumberBox.textInputAction and NumberBox.onEditingComplete (#1063)
fix: NumberBox does not calls a rebuild when it is already building (#1064)
feat: Add Tab.color, Tab.selectedColor and Tab.outlineColor to TabView (#1068)
feat: Added NavigationView.onItemPressed callback, called when the item is on tap (#1067)
fix: Mark MenuFlyoutItem as disabled when .onPressed is null (#1074)
BREAKING feat: Removed ButtonState, ButtonStates and their related classes. Use WidgetStateProperty, WidgetState instead. (#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 Tab a widget that can be overridable (#1050)
To create a custom Tab, you can now extend Tab:
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 TabState reference to see all the available methods you can override.
feat: Deprecate TabView.addIconData and TabView.addIconBuilder. Use TabView.newTabIcon instead.
fix: TabView.closeDelayDuration default value is now 1 second.
Full Changelog: https://github.com/bdlukaa/fluent_ui/compare/v4.8.0...v4.9.0