GlassBotton constructor
GlassBotton({
- required Widget child,
- AlignmentGeometry alignment = Alignment.topLeft,
- required Function onTap,
- Function? onDoubleTap,
- Function? onLongPress,
- double height = 50,
- double colorOpacity = 0.2,
- BoxBorder? border,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- double width = 50,
- double blurStrengthX = 10,
- double blurStrengthY = 10,
- Color color = Colors.transparent,
Implementation
GlassBotton({
required this.child,
this.alignment = Alignment.topLeft,
required this.onTap,
this.onDoubleTap,
this.onLongPress,
this.height = 50,
this.colorOpacity = 0.2,
this.border,
this.borderRadius,
this.padding,
this.width = 50,
this.blurStrengthX = 10,
this.blurStrengthY = 10,
this.color = Colors.transparent,
});