OmniDateTimePicker icon indicating copy to clipboard operation
OmniDateTimePicker copied to clipboard

Method has some issue

Open RjMakwana2660 opened this issue 1 year ago • 3 comments

@override Simulation? createBallisticSimulation( ScrollMetrics position, double velocity) { // Tolerance tolerance = toleranceFor(position); Tolerance tolerance = Tolerance(velocity: velocity); final double target = _getTargetPixels(position as ScrollPosition, tolerance, velocity); if (target != position.pixels) { return ScrollSpringSimulation(spring, position.pixels, target, velocity, tolerance: tolerance); } return null; } Method Mentioned here is having issue : toleranceFor Mentioned Method doesnt define under the code please resolved it mentioned

**Tolerance tolerance = Tolerance(velocity: velocity);**

RjMakwana2660 avatar Sep 05 '23 05:09 RjMakwana2660

Which flutter version are you using?

alanchan-dev avatar Sep 05 '23 06:09 alanchan-dev

I've got the same problem:

Flutter 3.7.6 Dart 2.19.3

marceloasantos avatar Sep 15 '23 17:09 marceloasantos

**Tolerance tolerance = Tolerance(velocity: velocity);** This fix wouldn't work as there will be rubber banding behavior when scrolling the spinner. Can you guys try running flutter upgrade, see if it fix the issue?

alanchan-dev avatar Sep 16 '23 02:09 alanchan-dev

No longer using tolerance in v2.0.0

alanchan-dev avatar Jun 14 '24 06:06 alanchan-dev