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. bool enabled = true,
  10. bool readOnly = false,
  11. bool autofocus = false,
  12. TextInputAction? textInputAction = TextInputAction.newline,
  13. List<TextInputFormatter>? inputFormatters,
  14. TextStyle? textStyle,
  15. TextStyle? placeholderStyle,
  16. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  17. LiquidGlassSettings? settings,
  18. bool useOwnLayer = false,
  19. GlassQuality quality = GlassQuality.standard,
  20. LiquidShape shape = const LiquidRoundedSuperellipse(borderRadius: 10),
})

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.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.textInputAction = TextInputAction.newline,
  this.inputFormatters,
  this.textStyle,
  this.placeholderStyle,
  this.padding = const EdgeInsets.all(16),
  // Glass properties
  this.settings,
  this.useOwnLayer = false,
  this.quality = GlassQuality.standard,
  this.shape = const LiquidRoundedSuperellipse(borderRadius: 10),
});