SlideInTextFormField constructor

const SlideInTextFormField({
  1. Key? key,
  2. Duration animationDuration = const Duration(milliseconds: 500),
  3. required TickerProvider vsync,
  4. required double width,
  5. required TextEditingController controller,
  6. required String fieldText,
  7. FocusNode? focusNode,
  8. double height = 48.0,
  9. TextInputType? inputType,
  10. EdgeInsets margin = const EdgeInsets.all(10),
  11. bool obscureText = false,
  12. Color backgroundColor = const Color(0xFFEEEEEE),
  13. BorderRadius cornerRadius = const BorderRadius.all(Radius.circular(16)),
  14. Color cursorColor = const Color(0xff0a2552),
  15. Color focusColor = Colors.white,
  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. EdgeInsets padding = const EdgeInsets.fromLTRB(32.0, 0.0, 84.0, 0.0),
  26. ValueChanged<String>? onChanged,
  27. TextOverflow textOverflow = TextOverflow.ellipsis,
  28. GestureTapCallback? onTap,
  29. TextInputAction? textInputAction,
  30. 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);