TextFormFieldCustom constructor
const
TextFormFieldCustom({
- Key? key,
- bool isPassword = false,
- bool isEnabled = true,
- bool isDone = false,
- bool centerText = false,
- bool disableOutlineBorder = true,
- bool autoFocus = false,
- bool readOnly = false,
- Color backgroundColor = Colors.white,
- EdgeInsetsGeometry padding = const EdgeInsets.only(bottom: 16.0, left: 16.0, right: 16.0, top: 16.0),
- int errorMaxLines = 2,
- double radius = 8,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction textInputAction = TextInputAction.done,
- List<
Widget> suffixIcon = const [], - SuffixIconConfiguration suffixIconConfiguration = const SuffixIconConfiguration(),
- TextCapitalization textCapitalization = TextCapitalization.none,
- Color? activeColor,
- Widget? prefixIcon,
- InputBorderStyle? focusedErrorBorderStyle,
- InputBorderStyle? focusedBorderStyle,
- InputBorderStyle? disabledBorderStyle,
- InputBorderStyle? enabledBorderStyle,
- InputBorderStyle? defaultBorderStyle,
- InputBorderStyle? errorBorderStyle,
- IconData onObsecurePasswordIcon(
- bool isObsecure
- Color onObsecurePasswordColor(
- bool isObsecure
- String? hintText,
- String? labelText,
- String? initialValue,
- String? errorMessage,
- int? minLines,
- int? maxLines,
- TextStyle? errorStyle,
- TextStyle? textStyle,
- TextStyle? prefixTextStyle,
- TextStyle? suffixTextStyle,
- TextStyle? labelStyle,
- FocusNode? focusNode,
- List<
TextInputFormatter> ? inputFormatter, - TextEditingController? controller,
- TextStyle? hintStyle,
- FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onFieldSubmitted, - ValueChanged<
String> ? onChanged, - FormFieldSetter<
String> ? onSaved, - VoidCallback? onTap,
Implementation
const TextFormFieldCustom({
Key? key,
this.isPassword = false,
this.isEnabled = true,
this.isDone = false,
this.centerText = false,
this.disableOutlineBorder = true,
this.autoFocus = false,
this.readOnly = false,
this.backgroundColor = Colors.white,
this.padding =
const EdgeInsets.only(bottom: 16.0, left: 16.0, right: 16.0, top: 16.0),
this.errorMaxLines = 2,
this.radius = 8,
this.keyboardType = TextInputType.text,
this.textInputAction = TextInputAction.done,
this.suffixIcon = const [],
this.suffixIconConfiguration = const SuffixIconConfiguration(),
this.textCapitalization = TextCapitalization.none,
this.activeColor,
this.prefixIcon,
this.focusedErrorBorderStyle,
this.focusedBorderStyle,
this.disabledBorderStyle,
this.enabledBorderStyle,
this.defaultBorderStyle,
this.errorBorderStyle,
this.onObsecurePasswordIcon,
this.onObsecurePasswordColor,
this.hintText,
this.labelText,
this.initialValue,
this.errorMessage,
this.minLines,
this.maxLines,
this.errorStyle,
this.textStyle,
this.prefixTextStyle,
this.suffixTextStyle,
this.labelStyle,
this.focusNode,
this.inputFormatter,
this.controller,
this.hintStyle,
this.validator,
this.onFieldSubmitted,
this.onChanged,
this.onSaved,
this.onTap,
}) : super(key: key);