DesignNumberField constructor
const
DesignNumberField({
- Key? key,
- required double? value,
- required ValueChanged<
double?> ? onChanged, - required DesignNumberFieldBuilder fieldBuilder,
- required DesignNumberFieldButtonBuilder buttonBuilder,
- DesignNumberFieldLayoutBuilder? layoutBuilder,
- double? min,
- double? max,
- double step = 1,
- double? pageStep,
- int? fractionDigits,
- TextEditingController? controller,
- FocusNode? focusNode,
- bool autofocus = false,
- String? semanticLabel,
- String semanticFormatterCallback(
- double value
- Duration repeatDelay = const Duration(milliseconds: 400),
- Duration repeatInterval = const Duration(milliseconds: 80),
A number field showing value.
Implementation
const DesignNumberField({
super.key,
required this.value,
required this.onChanged,
required this.fieldBuilder,
required this.buttonBuilder,
this.layoutBuilder,
this.min,
this.max,
this.step = 1,
this.pageStep,
this.fractionDigits,
this.controller,
this.focusNode,
this.autofocus = false,
this.semanticLabel,
this.semanticFormatterCallback,
this.repeatDelay = const Duration(milliseconds: 400),
this.repeatInterval = const Duration(milliseconds: 80),
}) : assert(step > 0),
assert(min == null || max == null || min <= max);