LiquidGlassButton constructor

const LiquidGlassButton({
  1. Key? key,
  2. Widget? child,
  3. String? text,
  4. TextStyle? textStyle,
  5. IconData? icon,
  6. double iconSize = 24.0,
  7. Color? iconColor,
  8. LiquidGlassConfig config = const LiquidGlassConfig(),
  9. VoidCallback? onPressed,
  10. VoidCallback? onLongPressed,
  11. double? width,
  12. double? height,
  13. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
  14. bool enableHapticFeedback = true,
  15. bool isLoading = false,
  16. bool isDisabled = false,
  17. 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,
});