CurlCard constructor
const
CurlCard({
- Key? key,
- required double width,
- required double height,
- required Widget content,
- Widget? actionLayer,
- double borderRadius = 16.0,
- double curlThreshold = 150.0,
- Duration animationDuration = const Duration(milliseconds: 240),
- Curve animationCurve = Curves.easeOut,
- VoidCallback? onCurlStart,
- ValueChanged<
double> ? onCurlUpdate, - OnCurlComplete? onCurlComplete,
- 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,
});