Questions tagged [animationcontroller]

37 questions
1
vote
1 answer

How to stop animation duration in flutter?

I have here a code about decrementing timer. I want to stop the timer after 5 seconds or at a certain time. How to achieve this with flutter? Here is a sample code. class MyHomePage1 extends StatefulWidget { MyHomePage1({Key key, this.title})…
Shammah
  • 87
  • 10
1
vote
1 answer

Unable to reliably trigger animation with longPress on GestureDetector

I'm trying to create a button with a progress indicator (CircularProgressIndicator) Desired flow: The user taps on the button it should fire a function The user presses the button (and holds), it should trigger the animation and fire a…
1
vote
0 answers

How to change scale and re-scale of container continiously by using animations?

I am begginner flutter developer, I want to take a support, I designed welcome page and I put background image to the container, but I want it to scale and re-scale forever while user on welcome page, I just want to learn teory of animation…
ygzkrmtc
  • 177
  • 12
1
vote
2 answers

Flutter. How to make AnimationBuilder listen to Multiple Animations?

class _SomeWidgetWithAnimationsState extends State with TickerProviderStateMixin { AnimationController firstController; AnimationController secondController; @override Widget build(BuildContext context) { …
user11655900
  • 420
  • 7
  • 15
1
vote
2 answers

How to reset an animation in specific offset, when animation status is forwarding?

I want to design a simple game in which the ball hits the boxes and the user has to try to bring the ball up with the cursor. When the ball returns, end of ball movement, is the offset at the bottom of the screen, and I want to reset the animation…
1
vote
0 answers

Flutter "The following StackOverflowError was thrown while notifying status listeners for AnimationController: Stack Overflow"

The problem occurred when I called setState method on a page that contains a widget which use AnimationController. ════════ Exception caught by animation library ═════════════════════════════════ The following StackOverflowError was thrown while…
Decline
  • 13
  • 7
1
vote
0 answers

How to stop the animation at a particular point?

I have created this animation for displaying a profile and I want to stop the animation when the profile picture animation is completed and before the opacity of the text below starts to change. Now, I know that the profile picture animation changes…
0
votes
0 answers

Modifying PageRoute Controller using ModalRoute 'can only be used within instance members..'

I have a Widget that based on certain user interactions modifies the AnimationController of the PageRoute. It does this via ModalRoute.of(context)?.controller and whilst it works as expected it is flagged as an invalid use of a protected…
Walrus
  • 19,801
  • 35
  • 121
  • 199
0
votes
1 answer

Access animation position of modal bottom sheet inside of the sheet widget

TDLR: I want to change the appearance of a custom modal sheet based on its route's animation position (i.e. change as the user slides it up and down). However, I don't want to have to convert any UI widget that shows the modal sheet to…
0
votes
0 answers

How do I use a Instance in an Initializer

I cannot pass the controller or the offsetAnimation instances to Initialize SideBar() SideBarWidget class class SideBarWidget extends StatelessWidget { SideBarWidget({Key? key, required this.controller}) : super(key: key); final…
0
votes
2 answers

How to use AnimationController in GetX with GetTickerProviderStateMixin

I want to impeliment animation in flutter with GetxController and GetView to controll my animation in every widget I want and this is my Getx Controller: class TestAnimationController extends GetxController with GetTickerProviderStateMixin { …
0
votes
1 answer

Animated Listview-item to show more information

I want to add an animation to my ListView items. Therefor I wrapped them in an AnimatedController and made the height dynamic to show more information after the user taped on the item. Here is my code: Widget _buildCard( String logo, Color…
0
votes
2 answers

Why is my CircularProgressIndicator spinning randomly when the screen loads?

I have a CircularProgressIndicator that is meant to display progress when the user presses a button. However, when I open the screen that uses this class it shows a loading animation and I'm not sure why. When the screen opens, it shouldn't show the…
whatwhatwhat
  • 1,991
  • 4
  • 31
  • 50
0
votes
0 answers

manage flutter Controllers in generals

I have more than one question about controllers : Do I need to dispose of every controller I create, even if it's TextEditingController or AnimationController? StatelessWidget and StatefulWidget, Do I need to convert StatelessWidget to stateful to…
0
votes
1 answer

Flutter: Array of AnimationController

How can I create a list of AnimationController? I found Flutter: Array of TextEditingController which shows how to create a list of texteditingcontroller, but with the AnimationController there's a required vsync and I haven't figured out how to get…
BrianDev
  • 57
  • 7