FastTextField constructor
FastTextField({
- String? name,
- String? placeholder,
- TextEditingController? controller,
- Widget? prefix,
- Widget? suffix,
- FastTextFieldType type = FastTextFieldType.titleSingle,
- ValueChanged<
String> ? onChanged, - TextInputType? keyboardType,
- TextStyle style = const TextStyle(color: Color(0xff030303)),
- TextStyle hintStyle = const TextStyle(color: Color(0xffDFE0EB)),
- bool obscureText = false,
- String? labelValue,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- FormFieldValidator<
String> ? validator, - bool autovalidate = false,
- Color borderColor = const Color(0xffEBEBEB),
- Color backgroundColor = Colors.transparent,
- List<
TextInputFormatter> inputFormatters = const <TextInputFormatter>[], - bool enable = true,
- double titleWidth = 100.0,
- double spacing = 10,
- int maxLine = 1,
Implementation
FastTextField({
this.name,
this.placeholder,
this.controller,
this.prefix,
this.suffix,
this.type = FastTextFieldType.titleSingle,
this.onChanged,
this.keyboardType,
this.style = const TextStyle(color: Color(0xff030303)),
this.hintStyle = const TextStyle(color: Color(0xffDFE0EB)),
this.obscureText = false,
this.labelValue,
this.padding = EdgeInsets.zero,
this.validator,
this.autovalidate = false,
this.borderColor = const Color(0xffEBEBEB),
this.backgroundColor = Colors.transparent,
this.inputFormatters = const <TextInputFormatter>[],
this.enable = true,
this.titleWidth = 100.0,
this.spacing = 10,
this.maxLine = 1,
});