GlassTextField constructor
const
GlassTextField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? placeholder,
- Widget? prefixIcon,
- Widget? suffixIcon,
- VoidCallback? onSuffixTap,
- bool obscureText = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- int maxLines = 1,
- int? minLines,
- int? maxLength,
- bool enabled = true,
- bool readOnly = false,
- bool autofocus = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - List<
TextInputFormatter> ? inputFormatters, - TextStyle? textStyle,
- TextStyle? placeholderStyle,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- double iconSpacing = 12.0,
- LiquidShape shape = const LiquidRoundedSuperellipse(borderRadius: 10),
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality quality = GlassQuality.standard,
Creates a glass text field.
Implementation
const GlassTextField({
super.key,
this.controller,
this.focusNode,
this.placeholder,
this.prefixIcon,
this.suffixIcon,
this.onSuffixTap,
this.obscureText = false,
this.keyboardType,
this.textInputAction,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.enabled = true,
this.readOnly = false,
this.autofocus = false,
this.onChanged,
this.onSubmitted,
this.inputFormatters,
this.textStyle,
this.placeholderStyle,
this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
this.iconSpacing = 12.0,
this.shape = const LiquidRoundedSuperellipse(borderRadius: 10),
this.settings,
this.useOwnLayer = false,
this.quality = GlassQuality.standard,
});