Questions tagged [animationcontroller]
37 questions
81
votes
17 answers
AnimationController The named parameter 'vsync' isn't defined
AnimationController stopped working because somehow vsync is not a named parameter anymore.
This line of code stopped working.
controller = AnimationController(duration: Duration(seconds: 3), vsync: this);
It now shows an error saying:
The named…

Chamanhm
- 1,060
- 1
- 11
- 17
8
votes
1 answer
How to add some delay between AnimationController.repeat() in Flutter
I need to add some delay between each iteration of animation gets call to repeat. Something like the following image.
I tried to do it by passing value to the period parameter of the repeat method but it was not what I expected.
_controller =…

SUDESH KUMARA
- 891
- 9
- 18
3
votes
1 answer
How I can change curve animation for snackbar in flutter?
Help me!
I need to change the default snackbar animation in flutter. And I need to change the curve animation when the snackbar appears.
I want to change the standard animation to Curves.easeOutBack.
I tried to use animation property of Snackbar but…

Artem
- 31
- 2
2
votes
1 answer
How to animate a text widget with an AnimationController
I am trying to build a widget that can be shown or hidden, and when it is shown, will have is displayed text 'grow' over a certain duration. I've based it mostly on the typing indicator example.
The idea is to have the widget in e.g. a form with…

Andre Clements
- 634
- 1
- 7
- 15
2
votes
1 answer
How to play lottie animation for specific time duration in flutter
I want to play lottie animation for specific time duration in flutter. I don't want to play it by fast forwarding. Like If my animation contains total 90 frames then If I only want to play first 30 frames so can I achieve this? or like If my…

Aayush Shah
- 584
- 1
- 8
- 17
2
votes
3 answers
Flutter AnimatedContainer vs AnimationController
I can't find the difference between the two, and why you would want to use one above the other.
The way I see it, both of them pretty much does the same thing.
Why and where would you use one above the other?

Ruan
- 3,969
- 10
- 60
- 87
1
vote
0 answers
Move a circular widget horizontally while changing the size Flutter
I just started flutter development and wanted to create an animation where it looks like a a circle is rotating in 3 dimension and when in center its full size but when going left or right the radius of the circle decreases.
What i have achieved so…

Android
- 1,085
- 4
- 13
- 28
1
vote
3 answers
How can use AnimationController in Cubit or Bloc?
I want to use AnimationController in the StatelessWidget class with Cubit or Bloc in a flutter, if anyone can help me with an example link to explain?

Mohammad Mirshahbazi
- 793
- 9
- 22
1
vote
0 answers
Flutter Web Animation Controller Gets in Indeterminate State When Website is Minimized or in Background
In Flutter Web I run into an issue with the animation controller.
See the sample flutter codelessly website here: https://gallery.codelessly.com/flutterwebsites/flutterwebsite/#/. To reproduce the issue, open this website on a mobile browser, and…

AlexK
- 336
- 8
- 21
- 41
1
vote
0 answers
How to handle animations with behavior trees in Unity?
I'm working on an AI implementation in Unity, using the Fluid Behaviour Tree library and I was wondering how to handle the animations with the BT.
I'm building a character that can interact with the player, so when the player hits a specific key it…

ephemerev
- 31
- 2
1
vote
1 answer
LateInitializationError: Field 'animationController' has not been initialized even using initState()
I am trying to build a login/signup page by using SingleTickerProviderStateMixin but I am getting errors on AnimationController. How I can solve it, Even try to use nullable? but I have to check! on operation. At that time I also get errors. Please…

Palash Dey
- 69
- 1
- 7
1
vote
1 answer
Flutter : AnimationController.stop() called after AnimationController.dispose() AnimationController methods should not be used after calling dispose.)
while animation was running i would like to go back to next page or previous page... but this error shows up saying "AnimationController.stop() called after AnimationController.dispose() AnimationController methods should not be used after calling…

Peter Bk
- 88
- 1
- 7
1
vote
2 answers
The argument type '_ProfileImageState' can't be assigned to the parameter type 'TickerProvider'
The main objective is to allow the user to choose an image from the gallery/camera but in order to make things look good some animation has been used and entire image picking dialogue box has been designed
class _ProfileImageState extends…

Bhavesh Rughwani
- 23
- 1
- 8
1
vote
1 answer
Flutter 2.2.3 : The argument type 'Animation' can't be assigned to the parameter type 'Animation'
I tried to pass list position from this and get this error : The argument type 'Animation' can't be assigned to the parameter type 'Animation'. I follow the steps from a youtuber, and can check full code…

Lukman
- 13
- 1
- 3
1
vote
1 answer
An infinite Horizontal Flip animation ImageWidget Flutter
My question is actually similar to a previous topic ( Link ), I tested but it doesn't work....
I want to acheive a simple screen with an infinite Horizontal Flip animation; I want, since the loading of my window, to have an image that makes an…

user1444393
- 213
- 1
- 4
- 17