Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
NumberInput
const NumberInput({
super.key,
this.size,
required this.value,
this.onChanged,
this.onSubmitted,
this.format = const NumberInputFormat.decimal(),
this.step = 1,
this.min,
this.max,
this.enabled = true,
this.readOnly = false,
this.isInvalid = false,
this.showControls = true,
this.autofocus = false,
this.focusNode,
this.placeholder,
this.semanticLabel = 'Number',
this.increaseLabel = 'Increase',
this.decreaseLabel = 'Decrease',
this.textInputAction = TextInputAction.done,
this.backgroundColor,
this.foregroundColor,
this.focusedBorderColor,
this.borderRadius,
this.height,
this.fontSize,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
value | double? | Yes | — |
onChanged | ValueChanged<double?>? | No | null |
onSubmitted | ValueChanged<double?>? | No | null |
format | NumberInputFormat | No | const NumberInputFormat.decimal() |
step | double | No | 1 |
min | double? | No | null |
max | double? | No | null |
enabled | bool | No | true |
readOnly | bool | No | false |
isInvalid | bool | No | false |
showControls | bool | No | true |
autofocus | bool | No | false |
focusNode | FocusNode? | No | null |
placeholder | String? | No | null |
semanticLabel | String | No | 'Number' |
increaseLabel | String | No | 'Increase' |
decreaseLabel | String | No | 'Decrease' |
textInputAction | TextInputAction | No | TextInputAction.done |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
focusedBorderColor | Color? | No | null |
borderRadius | double? | No | null |
height | double? | No | null |
fontSize | double? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/forms/number_input/number_input.dart
This reference is generated from the NumberInput declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

