HoverCard constructor
const
HoverCard({
- required String image,
- double width = 100,
- double expandedWidth = 200,
- double height = 200,
- int duration = 300,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
- Curve curve = Curves.easeInOutCubic,
- Curve reverseCurve = Curves.easeInOutCirc,
- EdgeInsetsGeometry margin = const EdgeInsets.all(4),
- bool isAssetImage = true,
- BoxFit fit = BoxFit.cover,
- void onTap()?,
- Key? key,
Implementation
const HoverCard({
required this.image,
this.width = 100,
this.expandedWidth = 200,
this.height = 200,
this.duration = 300,
this.borderRadius = const BorderRadius.all(Radius.circular(8)),
this.curve = Curves.easeInOutCubic,
this.reverseCurve = Curves.easeInOutCirc,
this.margin = const EdgeInsets.all(4),
this.isAssetImage = true,
this.fit = BoxFit.cover,
this.onTap,
Key? key,
}) : super(key: key);