AnimatedTextFormField constructor

const AnimatedTextFormField({
  1. Key? key,
  2. Duration animationDuration = const Duration(milliseconds: 500),
  3. required double width,
  4. required FocusNode focusNode,
  5. double height = 48.0,
  6. TextInputType? inputType,
  7. TextEditingController? controller,
  8. EdgeInsets margin = const EdgeInsets.all(10),
  9. bool obscureText = false,
  10. Color backgroundColor = const Color(0xFFEEEEEE),
  11. BorderRadius cornerRadius = const BorderRadius.all(Radius.circular(16)),
  12. BorderRadius focusedCornerRadius = const BorderRadius.all(Radius.circular(8)),
  13. Color cursorColor = const Color(0xff0a2552),
  14. Color focusColor = Colors.white,
  15. String hintText = "",
  16. bool hasShadow = false,
  17. TextStyle? textStyle,
  18. StringCallback? validator,
  19. bool autofocus = false,
  20. bool autocorrect = false,
  21. bool enabled = true,
  22. int? maxLength,
  23. int? maxLines,
  24. int? minLines,
  25. ValueChanged<String>? onChanged,
  26. GestureTapCallback? onTap,
  27. TextInputAction? textInputAction,
  28. ValueChanged<String>? onSubmitted,
})

Implementation

const AnimatedTextFormField(
    {Key? key,
      this.animationDuration = const Duration(milliseconds: 500),
      required this.width,
      required 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),
      assert(focusNode != null),
      super(key: key);