SmartTextFormField constructor
const
SmartTextFormField({
- Key? key,
- required FormType formType,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - Color? fieldNameColor,
- double fieldFontSize = StandardFieldStyle.fieldFontSize,
- FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
- Color hintTextColor = StandardFieldStyle.hintTextColor,
- double hintTextFontSize = StandardFieldStyle.hintTextFontSize,
- FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,
- Color? iconColor,
- double iconSize = StandardFieldStyle.iconSize,
- IconData? suffixIconData,
- bool outlinedIcon = StandardFieldStyle.outlinedIcon,
- BorderRadius borderRadius = StandardFieldStyle.borderRadius,
- BorderSide enabledBorderSide = StandardFieldStyle.enabledBorderSide,
- BorderSide focusedBorderSide = StandardFieldStyle.focusedBorderSide,
- BorderSide errorBorderSide = StandardFieldStyle.errorBorderSide,
- BorderSide focusedErrorBorderSide = StandardFieldStyle.focusedErrorBorderSide,
- BoxBorder? borderStyle,
- TextStyle? errorMessageStyle = StandardFieldStyle.errorMessageStyle,
- EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
- EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding,
- Color fillColor = StandardFieldStyle.fillColor,
- 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,
});