SmartTextFormField constructor

const SmartTextFormField({
  1. Key? key,
  2. required FormType formType,
  3. TextEditingController? controller,
  4. ValueChanged<String>? onChanged,
  5. Color? fieldNameColor,
  6. double fieldFontSize = StandardFieldStyle.fieldFontSize,
  7. FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
  8. Color hintTextColor = StandardFieldStyle.hintTextColor,
  9. double hintTextFontSize = StandardFieldStyle.hintTextFontSize,
  10. FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,
  11. Color? iconColor,
  12. double iconSize = StandardFieldStyle.iconSize,
  13. IconData? suffixIconData,
  14. bool outlinedIcon = StandardFieldStyle.outlinedIcon,
  15. BorderRadius borderRadius = StandardFieldStyle.borderRadius,
  16. BorderSide enabledBorderSide = StandardFieldStyle.enabledBorderSide,
  17. BorderSide focusedBorderSide = StandardFieldStyle.focusedBorderSide,
  18. BorderSide errorBorderSide = StandardFieldStyle.errorBorderSide,
  19. BorderSide focusedErrorBorderSide = StandardFieldStyle.focusedErrorBorderSide,
  20. BoxBorder? borderStyle,
  21. TextStyle? errorMessageStyle = StandardFieldStyle.errorMessageStyle,
  22. EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
  23. EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding,
  24. Color fillColor = StandardFieldStyle.fillColor,
  25. Color primaryColor = StandardFieldStyle.primaryColor,
})

Implementation

const SmartTextFormField({
  super.key,
  required this.formType,

  // Controllers
  this.controller,
  this.onChanged,

  // Field Name
  this.fieldNameColor,
  this.fieldFontSize = StandardFieldStyle.fieldFontSize,
  this.fieldFontWeight = StandardFieldStyle.fieldFontWeight,

  // Hint Text
  this.hintTextColor = StandardFieldStyle.hintTextColor,
  this.hintTextFontSize = StandardFieldStyle.hintTextFontSize,
  this.hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,

  // Prefix Icon
  this.iconColor,
  this.iconSize = StandardFieldStyle.iconSize,
  this.suffixIconData,
  this.outlinedIcon = StandardFieldStyle.outlinedIcon,

  // Borders
  this.borderRadius = StandardFieldStyle.borderRadius,
  this.enabledBorderSide = StandardFieldStyle.enabledBorderSide,
  this.focusedBorderSide = StandardFieldStyle.focusedBorderSide,
  this.errorBorderSide = StandardFieldStyle.errorBorderSide,
  this.focusedErrorBorderSide = StandardFieldStyle.focusedErrorBorderSide,
  this.borderStyle,

  // Error Message
  this.errorMessageStyle = StandardFieldStyle.errorMessageStyle,

  // Padding
  this.insidePadding = StandardFieldStyle.insidePadding,
  this.outsidePadding = StandardFieldStyle.outsidePadding,

  // Global
  this.fillColor = StandardFieldStyle.fillColor,
  this.primaryColor = StandardFieldStyle.primaryColor,
});