build method

  1. @override
Widget build(
  1. BuildContext context,
  2. bool isHovering
)
override

Override this method to build the widget based if the user isHovering or not.

Implementation

@override
Widget build(BuildContext context, bool isHovering) {
  return AnimatedScale(
    duration: duration,
    curve: curve,
    alignment: alignment,
    scale: isHovering ? scale : 1.0,
    child: child,
  );
}