BounceCard constructor
const
BounceCard({
- required VoidCallback onPressed,
- Widget? child,
- Color color = BouncingWidgetColor.LIGHT,
- Color? shadowColor,
- double? elevation,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- Clip? clipBehavior,
- bool borderOnForeground = true,
- bool semanticContainer = true,
- EdgeInsetsGeometry? margin,
- bool isScrollable = false,
- double scaleFactor = 1,
- Duration duration = const Duration(milliseconds: 200),
- bool canReverse = false,
- Key? key,
Implementation
const BounceCard({
required this.onPressed,
this.child,
this.color = BouncingWidgetColor.LIGHT,
this.shadowColor,
this.elevation,
this.surfaceTintColor,
this.shape,
this.clipBehavior,
this.borderOnForeground = true,
this.semanticContainer = true,
this.margin,
this.isScrollable = false,
this.scaleFactor = 1,
this.duration = const Duration(milliseconds: 200),
this.canReverse = false,
Key? key,
}) : super(key: key);