build method
- BuildContext context,
- 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) {
final transform = Matrix4.identity()..translate(offset.dx, offset.dy);
return TransformOnHover(
duration: duration,
curve: curve,
alignment: alignment,
transform: isHovering ? transform : Matrix4.identity(),
child: child,
);
}