BaseTextField constructor

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

Implementation

const BaseTextField(
    {super.key,
    this.margin,
    this.padding = const EdgeInsets.all(6.0),
    this.border,
    this.borderRadius,
    this.boxShadow,
    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.buildCounter,
    this.onTap});