BaseTextField constructor

const BaseTextField({
  1. Key? key,
  2. EdgeInsetsGeometry? margin,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
  4. double? height,
  5. double? borderRadius,
  6. Color? backgroundColor,
  7. int maxLines = 1,
  8. TextStyle? style,
  9. TextStyle? placeholderStyle,
  10. TextEditingController? controller,
  11. bool obscureText = false,
  12. bool autofocus = false,
  13. bool readOnly = false,
  14. int? maxLength,
  15. String? placeholder,
  16. FocusNode? focusNode,
  17. TextInputType? keyboardType,
  18. TextAlign textAlign = TextAlign.start,
  19. TextInputAction? textInputAction,
  20. BaseOverlayVisibilityMode clearButtonMode = BaseOverlayVisibilityMode.editing,
  21. List<TextInputFormatter>? inputFormatters,
  22. Widget? prefix,
  23. Widget? suffix,
  24. BoxDecoration? decoration,
  25. ValueChanged<String>? onChanged,
  26. ValueChanged<String>? onSubmitted,
  27. GestureTapCallback? onTap,
})

Implementation

const BaseTextField(
    {super.key,
    this.margin,
    this.padding = const EdgeInsets.all(6.0),
    this.height,
    this.borderRadius,
    this.backgroundColor,
    this.maxLines = 1,
    this.style,
    this.placeholderStyle,
    this.controller,
    this.obscureText = false,
    this.autofocus = false,
    this.readOnly = false,
    this.maxLength,
    this.placeholder,
    this.focusNode,
    this.keyboardType,
    this.textAlign = TextAlign.start,
    this.textInputAction,
    this.clearButtonMode = BaseOverlayVisibilityMode.editing,
    this.inputFormatters,
    this.prefix,
    this.suffix,
    this.decoration,
    this.onChanged,
    this.onSubmitted,
    this.onTap});