GlassTextArea constructor

const GlassTextArea({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. String? placeholder,
  5. int minLines = 3,
  6. int maxLines = 5,
  7. ValueChanged<String>? onChanged,
  8. ValueChanged<String>? onSubmitted,
  9. ValueChanged<int>? onLineCountChanged,
  10. bool enabled = true,
  11. bool readOnly = false,
  12. bool autofocus = false,
  13. TextInputAction? textInputAction = TextInputAction.newline,
  14. List<TextInputFormatter>? inputFormatters,
  15. TextStyle? textStyle,
  16. TextStyle? placeholderStyle,
  17. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  18. CrossAxisAlignment iconAlignment = CrossAxisAlignment.center,
  19. double? height,
  20. double? minHeight,
  21. double? maxHeight,
  22. Widget? bottom,
  23. LiquidGlassSettings? settings,
  24. bool useOwnLayer = false,
  25. GlassQuality? quality,
  26. LiquidShape shape = const LiquidRoundedSuperellipse(borderRadius: 10),
  27. GlassInteractionBehavior interactionBehavior = GlassInteractionBehavior.full,
  28. double pressScale = 1.03,
  29. Color? glowColor,
  30. double glowRadius = 1.5,
  31. TapRegionCallback? onTapOutside,
})

Creates a glass text area.

Implementation

const GlassTextArea({
  super.key,
  this.controller,
  this.focusNode,
  this.placeholder,
  this.minLines = 3,
  this.maxLines = 5,
  this.onChanged,
  this.onSubmitted,
  this.onLineCountChanged,
  this.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.textInputAction = TextInputAction.newline,
  this.inputFormatters,
  this.textStyle,
  this.placeholderStyle,
  this.padding = const EdgeInsets.all(16),
  this.iconAlignment = CrossAxisAlignment.center,
  this.height,
  this.minHeight,
  this.maxHeight,
  this.bottom,
  // Glass properties
  this.settings,
  this.useOwnLayer = false,
  this.quality,
  this.shape = const LiquidRoundedSuperellipse(borderRadius: 10),
  // ── iOS 26 interaction ────────────────────────────────────────────────────────────
  this.interactionBehavior = GlassInteractionBehavior.full,
  this.pressScale = 1.03,
  this.glowColor,
  this.glowRadius = 1.5,
  this.onTapOutside,
});