PremiumTextField constructor
const
PremiumTextField({ - Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? label,
- String? hint,
- String? helperText,
- String? errorText,
- String? prefixText,
- String? suffixText,
- IconData? leadingIcon,
- IconData? trailingIcon,
- Widget? leading,
- Widget? trailing,
- PremiumTextFieldVariant variant = PremiumTextFieldVariant.filled,
- bool isPassword = false,
- bool readOnly = false,
- bool enabled = true,
- bool autofocus = false,
- int? maxLines = 1,
- int? minLines,
- int? maxLength,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- List<TextInputFormatter>? inputFormatters,
- String? validator(
- String?
)?,
- ValueChanged<String>? onChanged,
- ValueChanged<String>? onSubmitted,
- VoidCallback? onEditingComplete,
- VoidCallback? onTap,
- VoidCallback? onTrailingTap,
- Color? primaryColor,
- Color? errorColor,
- Color? backgroundColor,
- double? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- bool isDarkMode = true,
- bool showCounter = false,
- ModernStyleOptions? styleOptions,
})
Implementation
const PremiumTextField({
super.key,
this.controller,
this.focusNode,
this.label,
this.hint,
this.helperText,
this.errorText,
this.prefixText,
this.suffixText,
this.leadingIcon,
this.trailingIcon,
this.leading,
this.trailing,
this.variant = PremiumTextFieldVariant.filled,
this.isPassword = false,
this.readOnly = false,
this.enabled = true,
this.autofocus = false,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.inputFormatters,
this.validator,
this.onChanged,
this.onSubmitted,
this.onEditingComplete,
this.onTap,
this.onTrailingTap,
this.primaryColor,
this.errorColor,
this.backgroundColor,
this.borderRadius,
this.contentPadding,
this.isDarkMode = true,
this.showCounter = false,
this.styleOptions,
});