BaseFieldNumber constructor

const BaseFieldNumber({
  1. Key? key,
  2. String? label,
  3. String? placeholder,
  4. double height = 40,
  5. EdgeInsetsGeometry? padding,
  6. double? fontSize = 18,
  7. double? labelFontSize = 18,
  8. double? placeholderFontSize,
  9. FontWeight? fontWeight,
  10. FontWeight? placeholderFontWeight,
  11. TextAlign? textAlign,
  12. MainAxisAlignment? labelTextAlign,
  13. MainAxisAlignment? placeholderTextAlign,
  14. String? initialValue,
  15. Color? background = Colors.black26,
  16. InputBorder? border = const OutlineInputBorder(borderSide: BorderSide.none),
  17. BorderRadiusGeometry? borderRadius,
  18. Widget? prefixIcon,
  19. String? prefixText,
  20. Widget? suffixIcon,
  21. String? suffixText,
  22. TextEditingController? controller,
  23. FocusNode? focusNode,
  24. String? validator(
    1. String?
    )?,
  25. void onChanged(
    1. String?
    )?,
})

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,
});