line_animator icon indicating copy to clipboard operation
line_animator copied to clipboard

control speed between two destinations

Open X-SLAYER opened this issue 4 years ago • 3 comments

is there any way to control moving speed between two destinations if I want to slow it or speed it up

X-SLAYER avatar Jun 09 '21 10:06 X-SLAYER

Heya, I'm not able to do any testing today to look thoroughly, but just to try and give some ideas...depending on how you are interfacing with it, could you simply change the duration ? Or do you mean mid draw or something.

ibrierley avatar Jun 09 '21 10:06 ibrierley

Just another thought also...if you're using the widget, you can pass it an animationController (not sure I tested this properly, so mileage may very). So you could run your own separate controller and control various things https://api.flutter.dev/flutter/animation/AnimationController-class.html near the bottom there are things like the lowerBounds and velocity etc.

ibrierley avatar Jun 09 '21 10:06 ibrierley

okay thnx no problem i will recheck that and give it a try

X-SLAYER avatar Jun 09 '21 10:06 X-SLAYER