Is there a way to create animationController inside a stateless widget? Presently I am unable to pass vsync:this inside controller constructor...
No you can't because StatelessWidget doesn't implement State which SingleTickerProvider mixin is defined to work only on classes that implement it
If you are looking for a clean solution see flutter hooks they let you use an animation contoller without the boilerplate needed if you use StatefulWidget
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With