Skip to content

Commit

Permalink
fix: NumberBox text is correctly when there are no visible actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Dec 13, 2024
1 parent 3a3c3c9 commit 6120b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- feat: Add `ColorPicker` ([#1001](https://github.com/bdlukaa/fluent_ui/issues/1001))
- fix: `NumberBox` initial value formatting ([#1153](https://github.com/bdlukaa/fluent_ui/issues/1153))
- fix: `NumberBox` incrementing/decrementing when not focused ([#1124](https://github.com/bdlukaa/fluent_ui/issues/1124))
- fix: `NumberBox` text is correctly when there are no visible actions ([#1150](https://github.com/bdlukaa/fluent_ui/issues/1150))

## 4.9.2

Expand Down
4 changes: 4 additions & 0 deletions lib/src/controls/form/number_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ class NumberBoxState<T extends num> extends State<NumberBox<T>> {
assert(debugCheckHasOverlay(context));

final textFieldSuffix = <Widget>[
// Ensure all modes have a suffix. This is necessary to ensure the text
// is aligned correctly when there are no suffix actions.
// See https://github.com/bdlukaa/fluent_ui/issues/1150
const SizedBox(),
if (widget.clearButton && _hasPrimaryFocus)
IconButton(
key: _clearButtonKey,
Expand Down

0 comments on commit 6120b4c

Please sign in to comment.