XHeaderGradient constructor

const XHeaderGradient(
  1. {Key key,
  2. double rounded = 5,
  3. double blurRadius = 12,
  4. Offset offset = const Offset(0, 8),
  5. double spreadRadius = 0.5,
  6. Color shadowColor = Colors.black,
  7. Gradient gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment(0.8, 0.0), colors: [Colors.red, Colors.pink], tileMode: TileMode.mirror),
  8. Widget child,
  9. Function onTap}
)

Implementation

const XHeaderGradient({
  Key key,
  this.rounded = 5,
  this.blurRadius = 12,
  this.offset = const Offset(0, 8),
  this.spreadRadius = 0.5,
  this.shadowColor = Colors.black,
  this.gradient = const LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment(0.8, 0.0), // 10% of the width, so there are ten blinds.
    colors: [Colors.red, Colors.pink], // whitish to gray
    tileMode: TileMode.mirror, // repeats the gradient over the canvas
  ),
  this.child,
  this.onTap,
}) : super(key: key);