GlassPicker constructor

const GlassPicker({
  1. required String? value,
  2. VoidCallback? onTap,
  3. Key? key,
  4. String placeholder = 'Select',
  5. Widget? icon,
  6. double height = 48.0,
  7. double? width,
  8. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16),
  9. TextStyle? textStyle,
  10. TextStyle? placeholderStyle,
  11. LiquidGlassSettings? settings,
  12. bool useOwnLayer = false,
  13. GlassQuality? quality,
  14. LiquidShape shape = const LiquidRoundedRectangle(borderRadius: 10),
})

Creates a glass picker.

Implementation

const GlassPicker({
  required this.value,
  this.onTap,
  super.key,
  this.placeholder = 'Select',
  this.icon,
  this.height = 48.0,
  this.width,
  this.padding = const EdgeInsets.symmetric(horizontal: 16),
  this.textStyle,
  this.placeholderStyle,
  this.settings,
  this.useOwnLayer = false,
  this.quality,
  this.shape = const LiquidRoundedRectangle(borderRadius: 10),
});