animateWidgetHoverScale method

Widget animateWidgetHoverScale({
  1. int durationMs = 300,
  2. bool repeat = true,
  3. bool animate = true,
})
  1. Hover Scale

Implementation

Widget animateWidgetHoverScale(
    {int durationMs = 300, bool repeat = true, bool animate = true}) {
  if (!animate) return this;
  return MouseRegion(
    cursor: SystemMouseCursors.click,
    child: _baseAnimate(repeat: repeat, reverse: true).scaleXY(
        begin: 1.0,
        end: 1.03,
        duration: durationMs.ms,
        curve: Curves.easeInOut),
  );
}