BaseFieldNumber constructor
const
BaseFieldNumber({
- Key? key,
- String? label,
- String? placeholder,
- double height = 40,
- EdgeInsetsGeometry? padding,
- double? fontSize = 18,
- double? labelFontSize = 18,
- double? placeholderFontSize,
- FontWeight? fontWeight,
- FontWeight? placeholderFontWeight,
- TextAlign? textAlign,
- MainAxisAlignment? labelTextAlign,
- MainAxisAlignment? placeholderTextAlign,
- String? initialValue,
- Color? background = Colors.black26,
- InputBorder? border = const OutlineInputBorder(borderSide: BorderSide.none),
- BorderRadiusGeometry? borderRadius,
- Widget? prefixIcon,
- String? prefixText,
- Widget? suffixIcon,
- String? suffixText,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? validator()?,
- void onChanged()?,
Implementation
const BaseFieldNumber({
super.key,
this.label,
this.placeholder,
this.height = 40,
this.padding,
this.fontSize = 18,
this.labelFontSize = 18,
this.placeholderFontSize,
this.fontWeight,
this.placeholderFontWeight,
this.textAlign,
this.labelTextAlign,
this.placeholderTextAlign,
this.initialValue,
this.background = Colors.black26,
this.border = const OutlineInputBorder(
borderSide: BorderSide.none,
),
this.borderRadius,
this.prefixIcon,
this.prefixText,
this.suffixIcon,
this.suffixText,
this.controller,
this.focusNode,
this.validator,
this.onChanged,
});