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. TextCapitalization textCapitalization = TextCapitalization.none,
  16. Iterable<String>? autofillHints = const <String>[],
  17. bool autocorrect = true,
  18. bool enableSuggestions = true,
  19. TextSelectionControls? selectionControls,
  20. TextStyle? textStyle,
  21. TextStyle? placeholderStyle,
  22. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  23. CrossAxisAlignment iconAlignment = CrossAxisAlignment.center,
  24. double? height,
  25. double? minHeight,
  26. double? maxHeight,
  27. Widget? bottom,
  28. LiquidGlassSettings? settings,
  29. bool useOwnLayer = false,
  30. GlassQuality? quality,
  31. GlassSurfaceStyle? surfaceStyle,
  32. Color? color,
  33. LiquidShape shape = const LiquidRoundedRectangle(borderRadius: 10),
  34. GlassInteractionBehavior interactionBehavior = GlassInteractionBehavior.full,
  35. double pressScale = 1.03,
  36. Color? glowColor,
  37. double glowRadius = 1.5,
  38. 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.textCapitalization = TextCapitalization.none,
  this.autofillHints = const <String>[],
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.selectionControls,
  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.surfaceStyle,
  this.color,
  this.shape = const LiquidRoundedRectangle(borderRadius: 10),
  // ── iOS 26 interaction ────────────────────────────────────────────────────────────
  this.interactionBehavior = GlassInteractionBehavior.full,
  this.pressScale = 1.03,
  this.glowColor,
  this.glowRadius = 1.5,
  this.onTapOutside,
});