CustomTextFormFieldLite constructor
const
CustomTextFormFieldLite({
- Key? key,
- Duration animationDuration = const Duration(milliseconds: 500),
- required double width,
- FocusNode? focusNode,
- double height = 48.0,
- TextInputType? inputType,
- TextEditingController? controller,
- EdgeInsets margin = const EdgeInsets.all(10),
- bool obscureText = false,
- Color backgroundColor = const Color(0xFFEEEEEE),
- BorderRadius cornerRadius = const BorderRadius.all(Radius.circular(16)),
- BorderRadius focusedCornerRadius = const BorderRadius.all(Radius.circular(8)),
- Color cursorColor = const Color(0xff0a2552),
- Color focusColor = Colors.white,
- String hintText = "",
- bool hasShadow = false,
- TextStyle? textStyle,
- StringCallback? validator,
- bool autofocus = false,
- bool autocorrect = false,
- bool enabled = true,
- int? maxLength,
- int? maxLines,
- int? minLines,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- TextInputAction? textInputAction,
- ValueChanged<
String> ? onSubmitted,
Implementation
const CustomTextFormFieldLite(
{Key? key,
this.animationDuration = const Duration(milliseconds: 500),
required this.width,
this.focusNode,
this.height = 48.0,
this.inputType,
this.controller,
this.margin = const EdgeInsets.all(10),
this.obscureText = false,
this.backgroundColor = const Color(0xFFEEEEEE),
this.cornerRadius = const BorderRadius.all(Radius.circular(16)),
this.focusedCornerRadius = const BorderRadius.all(Radius.circular(8)),
this.cursorColor = const Color(0xff0a2552),
this.focusColor = Colors.white,
this.hintText = "",
this.hasShadow = false,
this.textStyle,
this.validator,
this.autofocus = false,
this.autocorrect = false,
this.enabled = true,
this.maxLength,
this.maxLines,
this.minLines,
this.onChanged,
this.onTap,
this.textInputAction,
this.onSubmitted})
: assert(width != null),
super(key: key);