XHeaderGradient constructor
const
XHeaderGradient(- {Key key,
- double rounded = 5,
- double blurRadius = 12,
- Offset offset = const Offset(0, 8),
- double spreadRadius = 0.5,
- Color shadowColor = Colors.black,
- Gradient gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment(0.8, 0.0), colors: [Colors.red, Colors.pink], tileMode: TileMode.mirror),
- Widget child,
- 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);