From 0d97ca2562965554406459e59c42a6e6e754154f Mon Sep 17 00:00:00 2001 From: Bruno D'Luka Date: Wed, 20 Nov 2024 13:57:54 -0300 Subject: [PATCH] chore: Update changelog --- CHANGELOG.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0621916b0..d7b674462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,31 @@ - fix: Do try to scroll Date and Time at build time ([#1117](https://github.com/bdlukaa/fluent_ui/issues/1117)) - feat: Use a `Decoration` instead of `Color` in `NavigationAppBar` ([#1118](https://github.com/bdlukaa/fluent_ui/issues/1118)) - feat: Add `EditableComboBox.inputFormatters` ([#1041](https://github.com/bdlukaa/fluent_ui/issues/1041)) +- **BREAKING** feat: `TextBox.decoration` and `TextBox.foregroundDecoration` are now of type `WidgetStateProperty` ([#987](https://github.com/bdlukaa/fluent_ui/pull/987)) + + Before: + ```dart + TextBox( + decoration: BoxDecoration( + color: Colors.red, + ), + foregroundDecoration: BoxDecoration( + color: Colors.blue, + ), + ), + ``` + + After: + ```dart + TextBox( + decoration: WidgetStateProperty.all(BoxDecoration( + color: Colors.red, + )), + foregroundDecoration: WidgetStateProperty.all(BoxDecoration( + color: Colors.blue, + )), + ), + ``` ## 4.9.2