TextField constructor

const TextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. String? labelText,
  5. TextStyle? hintStyle,
  6. TextStyle? labelStyle,
  7. TextStyle? style,
  8. TextInputType? keyboardType,
  9. TextCapitalization textCapitalization = TextCapitalization.none,
  10. bool obscureText = false,
  11. int? maxLines = 1,
  12. int? minLines,
  13. InputDecoration? decoration,
  14. TextInputAction? textInputAction,
  15. ValueChanged<String>? onChanged,
  16. ValueChanged<String>? onSubmitted,
  17. bool enabled = true,
  18. Widget? prefixIcon,
  19. Widget? suffixIcon,
  20. TextAlignVertical? textAlignVertical,
  21. bool expands = false,
  22. FocusNode? focusNode,
  23. bool autofocus = false,
  24. VoidCallback? onEditingComplete,
  25. GestureTapCallback? onTap,
})

Implementation

const TextField(
    {super.key,
    this.controller,
    this.hintText,
    this.labelText,
    this.hintStyle,
    this.labelStyle,
    this.style,
    this.keyboardType,
    this.textCapitalization = TextCapitalization.none,
    this.obscureText = false,
    this.maxLines = 1,
    this.minLines,
    this.decoration,
    this.textInputAction,
    this.onChanged,
    this.onSubmitted,
    this.enabled = true,
    this.prefixIcon,
    this.suffixIcon,
    this.textAlignVertical,
    this.expands = false,
    this.focusNode,
    this.autofocus = false,
    this.onEditingComplete,
    this.onTap});