Preface: This is not a debugging question -- there is no code problem -- code is for illustration purposes only.
I am working with an animation controller in Flutter.
Using controller.forward with the controller alone (no curve applied), the controller.velocity property is constant during the animation... and this is to be expected.
So I thought to myself, "Ah... I'll apply a curve to the animation controller... then the velocity property will correspond directly to the curve applied!"
I added this code:
// 'ac' is the Animation Controller
myCurve = CurvedAnimation(parent: ac, curve: Curves.easeInOutCirc);
myTween = new Tween(
begin: 0.0,
end: 1.0,
).animate(myCurve);
I expected that either:
A) The controller.value property would just automatically yield the newly calculated velocity.
B) I would be able to use myCurve.velocity or myTween.velocity instead, which would yield the new, calculated velocity.
I have verified visually that the curve is being applied properly to the animation, but I can also see (visually) and with print debugging that controller.velocity yields the same velocity (constant) as it did with no curve applied, and neither myCurve or myTween have a velocity property!
Surely there is a way to access a velocity property somewhere that correlates to the applied curve.
I've tried googling but it's one of those topics that is very hard to avoid more general results.