GlassTextField constructor

const GlassTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. String? placeholder,
  5. Widget? prefixIcon,
  6. Widget? suffixIcon,
  7. VoidCallback? onSuffixTap,
  8. bool obscureText = false,
  9. TextInputType? keyboardType,
  10. TextInputAction? textInputAction,
  11. int maxLines = 1,
  12. int? minLines,
  13. int? maxLength,
  14. bool enabled = true,
  15. bool readOnly = false,
  16. bool autofocus = false,
  17. ValueChanged<String>? onChanged,
  18. ValueChanged<String>? onSubmitted,
  19. List<TextInputFormatter>? inputFormatters,
  20. TextStyle? textStyle,
  21. TextStyle? placeholderStyle,
  22. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  23. double iconSpacing = 12.0,
  24. LiquidShape shape = const LiquidRoundedSuperellipse(borderRadius: 10),
  25. LiquidGlassSettings? settings,
  26. bool useOwnLayer = false,
  27. 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,
});