CoverCard constructor

const CoverCard({
  1. Key? key,
  2. Widget? background,
  3. Widget? foreground,
  4. Widget overlay = const SizedBox.shrink(),
  5. AlignmentDirectional alignment = AlignmentDirectional.topCenter,
  6. StackFit fit = StackFit.loose,
  7. double parallaxRate = 0.2,
  8. required Widget cover,
  9. required Widget card,
  10. required double coverHeight,
})

Implementation

const CoverCard({
  super.key,
  this.background,
  this.foreground,
  this.overlay = const SizedBox.shrink(),
  this.alignment = AlignmentDirectional.topCenter,
  this.fit = StackFit.loose,
  this.parallaxRate = 0.2,
  required this.cover,
  required this.card,
  required this.coverHeight,
})  : assert(parallaxRate > 0.0);