GlassPicker constructor
const
GlassPicker({
- required String? value,
- VoidCallback? onTap,
- Key? key,
- String placeholder = 'Select',
- Widget? icon,
- double height = 48.0,
- double? width,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16),
- TextStyle? textStyle,
- TextStyle? placeholderStyle,
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality? quality,
- LiquidShape shape = const LiquidRoundedRectangle(borderRadius: 10),
- String? semanticLabel,
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),
this.semanticLabel,
});