CurlCard constructor

const CurlCard({
  1. Key? key,
  2. required double width,
  3. required double height,
  4. required Widget content,
  5. Widget? actionLayer,
  6. double borderRadius = 16.0,
  7. double curlThreshold = 150.0,
  8. Duration animationDuration = const Duration(milliseconds: 240),
  9. Curve animationCurve = Curves.easeOut,
  10. VoidCallback? onCurlStart,
  11. ValueChanged<double>? onCurlUpdate,
  12. OnCurlComplete? onCurlComplete,
  13. bool enabled = true,
})

Creates a curl card widget.

Implementation

const CurlCard({
  super.key,
  required this.width,
  required this.height,
  required this.content,
  this.actionLayer,
  this.borderRadius = 16.0,
  this.curlThreshold = 150.0,
  this.animationDuration = const Duration(milliseconds: 240),
  this.animationCurve = Curves.easeOut,
  this.onCurlStart,
  this.onCurlUpdate,
  this.onCurlComplete,
  this.enabled = true,
});