AnimatedTextFormField constructor
const
AnimatedTextFormField({
- Key? key,
- Interval? interval = const Interval(0.0, 1.0),
- required double width,
- AnimationController? loadingController,
- AnimationController? inertiaController,
- TextFieldInertiaDirection? inertiaDirection,
- bool enabled = true,
- String? labelText,
- Widget? prefixIcon,
- Widget? suffixIcon,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool obscureText = false,
- TextEditingController? controller,
- FocusNode? focusNode,
- FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - bool autocorrect = false,
- Iterable<
String> ? autofillHints,
Implementation
const AnimatedTextFormField({
Key? key,
this.interval = const Interval(0.0, 1.0),
required this.width,
this.loadingController,
this.inertiaController,
this.inertiaDirection,
this.enabled = true,
this.labelText,
this.prefixIcon,
this.suffixIcon,
this.keyboardType,
this.textInputAction,
this.obscureText = false,
this.controller,
this.focusNode,
this.validator,
this.onFieldSubmitted,
this.onSaved,
this.autocorrect = false,
this.autofillHints,
}) : assert((inertiaController == null && inertiaDirection == null) ||
(inertiaController != null && inertiaDirection != null)),
super(key: key);