CustomCard constructor
const
CustomCard({
- required Widget child,
- required dynamic on_pressed()?,
- double elevation = 3,
- double border_radius = 18,
- LinearGradient linear_gradient = const LinearGradient(colors: [Colors.white, Colors.white]),
- Color splash_color = Colors.transparent,
- Duration animation_duration = const Duration(milliseconds: 100),
- BoxShape shape = BoxShape.rectangle,
- String? tooltip,
Implementation
const CustomCard({
required this.child,
required this.on_pressed,
this.elevation = 3,
this.border_radius = 18,
this.linear_gradient = const LinearGradient(
colors: [
Colors.white,
Colors.white,
],
),
this.splash_color = Colors.transparent,
this.animation_duration = const Duration(milliseconds: 100),
this.shape = BoxShape.rectangle,
this.tooltip,
});