BasicTextField constructor
const
BasicTextField({
- Key? key,
- String? label,
- String? placeholder,
- String? defaultValue,
- int? maxLength,
- int? maxLines = 1,
- int? autoClear,
- TextInputType? keyboardType,
- dynamic onChanged()?,
- dynamic onClear()?,
- String? validator()?,
- bool isPassword = false,
- Color? fillColor,
- Color? textColor,
- Color? labelColor,
- Color? borderColor,
- Color? focusedBorderColor,
- double? borderWidth,
- double? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- BasicTextVariant? labelVariant,
- double? textSize,
- EdgeInsets? margin,
- bool clearText = false,
- Icon? prefixIcon,
- bool hideCounterText = true,
- TextAlign textAlign = TextAlign.start,
Implementation
const BasicTextField({
Key? key,
this.label,
this.placeholder,
this.defaultValue,
this.maxLength,
this.maxLines = 1,
this.autoClear,
this.keyboardType,
this.onChanged,
this.onClear,
this.validator,
this.isPassword = false,
this.fillColor,
this.textColor,
this.labelColor,
this.borderColor,
this.focusedBorderColor,
this.borderWidth,
this.borderRadius,
this.contentPadding,
this.labelVariant,
this.textSize,
this.margin,
this.clearText = false,
this.prefixIcon,
this.hideCounterText = true,
this.textAlign = TextAlign.start,
}) : super(key: key);