LiquidGlassButton constructor
const
LiquidGlassButton({
- Key? key,
- Widget? child,
- String? text,
- TextStyle? textStyle,
- IconData? icon,
- double iconSize = 24.0,
- Color? iconColor,
- LiquidGlassConfig config = const LiquidGlassConfig(),
- VoidCallback? onPressed,
- VoidCallback? onLongPressed,
- double? width,
- double? height,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
- bool enableHapticFeedback = true,
- bool isLoading = false,
- bool isDisabled = false,
- LiquidGlassButtonSize size = LiquidGlassButtonSize.medium,
Implementation
const LiquidGlassButton({
super.key,
this.child,
this.text,
this.textStyle,
this.icon,
this.iconSize = 24.0,
this.iconColor,
this.config = const LiquidGlassConfig(),
this.onPressed,
this.onLongPressed,
this.width,
this.height,
this.padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
this.enableHapticFeedback = true,
this.isLoading = false,
this.isDisabled = false,
this.size = LiquidGlassButtonSize.medium,
});