Trying to enlarge my picture(clipped with ClipPath) using InkWell function(onHover) but when i hover picture nothing happens.
InkWell(
onTap: () {},
onHover: (isHovering) {
if (isHovering) {
setState(() {
sizeBool = !sizeBool;
});
}
},
child: ClipPath(
child: AnimatedContainer(
duration: Duration(seconds: 1),
width: MediaQuery.of(context).size.width,
height: sizeBool ? 450 : 150,
child: Image.network(
'image.url',
fit: BoxFit.cover,
),
),
clipper: CustomClipPath(),
),
)
],
)
],
),
),
),
);
}
}