BaseTextField constructor
const
BaseTextField({
- Key? key,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
- double? height,
- double? borderRadius,
- Color? backgroundColor,
- int maxLines = 1,
- TextStyle? style,
- TextStyle? placeholderStyle,
- TextEditingController? controller,
- bool obscureText = false,
- bool autofocus = false,
- bool readOnly = false,
- int? maxLength,
- String? placeholder,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextAlign textAlign = TextAlign.start,
- TextInputAction? textInputAction,
- BaseOverlayVisibilityMode clearButtonMode = BaseOverlayVisibilityMode.editing,
- List<
TextInputFormatter> ? inputFormatters, - Widget? prefix,
- Widget? suffix,
- BoxDecoration? decoration,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - 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});