GlassButton constructor
- Key? key,
- Widget? child,
- Widget? icon,
- required VoidCallback? onPressed,
- GlassButtonVariant variant = GlassButtonVariant.glass,
- bool destructive = false,
- Color? tint,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
- double height = 40,
- EdgeInsetsGeometry? padding,
- GlassMode mode = GlassMode.auto,
Creates a glass button. Give it a child, an icon, or both.
Implementation
const GlassButton({
super.key,
this.child,
this.icon,
required this.onPressed,
this.variant = GlassButtonVariant.glass,
this.destructive = false,
this.tint,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
this.height = 40,
this.padding,
this.mode = GlassMode.auto,
});