onHover method
Implementation
void onHover(PointerHoverEvent e, BoxConstraints constraints) {
final percent = e.localPosition.dx / constraints.maxWidth;
setState(() {
hover = true;
slider = percent.clamp(0.0, 1.0);
});
}
void onHover(PointerHoverEvent e, BoxConstraints constraints) {
final percent = e.localPosition.dx / constraints.maxWidth;
setState(() {
hover = true;
slider = percent.clamp(0.0, 1.0);
});
}