LitGradientCard constructor

const LitGradientCard({
  1. Key? key,
  2. EdgeInsets padding = const EdgeInsets.all(0.0),
  3. EdgeInsets margin = const EdgeInsets.all(0.0),
  4. double landscapeWidthFactor = 0.60,
  5. List<BoxShadow> boxShadow = const [const BoxShadow(blurRadius: 4.0, color: Colors.black26, offset: Offset(-2, 2.0), spreadRadius: 1.0)],
  6. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(22.0)),
  7. Alignment begin = Alignment.topRight,
  8. Alignment end = Alignment.bottomLeft,
  9. List<Color> colors = const [Colors.white, const Color(0xFFE4E4E4)],
  10. Widget? child,
})

Creates a LitGradientCard.

Pass a padding and margin object to create spacing outside and inside the card. The landscapeWidthFactor should be set to 1.0 if there should be no difference between landscape and portrait mode layouting.

Implementation

const LitGradientCard({
  Key? key,
  this.padding = const EdgeInsets.all(0.0),
  this.margin = const EdgeInsets.all(0.0),
  this.landscapeWidthFactor = 0.60,
  this.boxShadow = const [
    const BoxShadow(
      blurRadius: 4.0,
      color: Colors.black26,
      offset: Offset(-2, 2.0),
      spreadRadius: 1.0,
    )
  ],
  this.borderRadius = const BorderRadius.all(
    Radius.circular(
      22.0,
    ),
  ),
  this.begin = Alignment.topRight,
  this.end = Alignment.bottomLeft,
  this.colors = const [
    Colors.white,
    const Color(0xFFE4E4E4),
  ],
  this.child,
}) : super(key: key);