ScaleOnHover constructor

const ScaleOnHover({
  1. Key? key,
  2. required Duration duration,
  3. Curve curve = Curves.linear,
  4. Alignment alignment = Alignment.center,
  5. required double scale,
  6. required Widget child,
  7. MouseCursor cursor = kDefaultHoverCursor,
  8. 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,
});