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