AppTextField constructor
const
AppTextField({
- FormFieldValidator<
String> ? validator, - bool obscureText = false,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool digitsOnly = false,
- required TextEditingController controller,
- TextInputType textInputType = TextInputType.text,
- EdgeInsets contentPadding = const EdgeInsets.all(20.0),
- Widget? prefixWidget,
- Widget? suffixWidget,
- String? hintText = '',
- TextInputAction textInputAction = TextInputAction.next,
- int maxLength = 50,
- bool enableFocusBorder = true,
- ValueChanged<
String> ? onChanged, - Color? textColor,
- String prefixText = "",
- Color? labelColor,
- String? labelText,
- bool readOnly = false,
- dynamic maxLine = 1,
- dynamic key1,
- dynamic onTap()?,
- String? initialValue,
- bool isDense = false,
- dynamic onSend()?,
Implementation
const AppTextField({
this.validator,
this.obscureText = false,
this.textCapitalization = TextCapitalization.none,
this.digitsOnly = false,
required this.controller,
this.textInputType = TextInputType.text,
this.contentPadding = const EdgeInsets.all(20.0),
this.prefixWidget,
this.suffixWidget,
this.hintText = '',
this.textInputAction = TextInputAction.next,
this.maxLength = 50,
this.enableFocusBorder = true,
this.onChanged,
this.textColor,
this.prefixText = "",
this.labelColor,
this.labelText,
this.readOnly = false,
this.maxLine = 1,
this.key1,
this.onTap,
this.initialValue,
this.isDense = false,
this.onSend,
});