ScaleOnHover constructor
- Key? key,
- required Duration duration,
- Curve curve = Curves.linear,
- Alignment alignment = Alignment.center,
- required double scale,
- required Widget child,
- MouseCursor cursor = kDefaultHoverCursor,
- VoidCallback? onTap,
Scales the given child
to the given scale
when hovered.
Implementation
const ScaleOnHover({
super.key,
required this.duration,
this.curve = Curves.linear,
this.alignment = Alignment.center,
required this.scale,
required this.child,
super.cursor = kDefaultHoverCursor,
super.onTap,
});