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