Questions tagged [animatedcrossfade]

6 questions
1
vote
1 answer

Cross fade animation items all begin on top of the other

I have the below code to perform a cross fade between multiple items. Each xfader_ is then applied as a class to the relevant item in a list. This code works well except when the page is first loaded and all items begin on top of the other. After a…
callumg46
  • 471
  • 1
  • 4
  • 10
1
vote
0 answers

AnimatedCrossFade State not Changing

I am unable to get a basic implementation of AnimatedCrossFade working. I am able to change the state successfully but the animation does not trigger when the state is changed. Here is what I have: class Home extends StatefulWidget { @override …
0
votes
0 answers

Crossfade animation not working on changing page

when i am changing page it should have fading animation but it is not working. I have check the same code in my other project written by other developer where he is using the state from viewmodel and it is working. val selectedPage = remember {…
0
votes
1 answer

AnimatedCrossFade Widget not displaying text in release mode instead it displaying a grey background

AnimatedContainer( duration: const Duration(milliseconds: 200), curve: Curves.easeIn, height: expandedStatus[index] ?300 : 160, decoration: BoxDecoration( boxShadow: const [ …
0
votes
0 answers

Is Flutter Navigator necessary / important or are animations and state changes sufficient when appropriate

In development we have found Flutter Navigator to be limiting to what we want to achieve. It seems very much set up for a conventional route structure however many of our user actions involve state changes that modify the existing screen rather than…
Walrus
  • 19,801
  • 35
  • 121
  • 199
0
votes
1 answer

Flutter AnimatedCrossFade messes up widget formatting

I'm trying to create a smooth animation using the AnimatedCrossFade widget but I noticed 2 problems: Button dimension changes and expands during animation. The desired outcome is that both buttons match the parent's width and that the color and text…
Eddy Todd
  • 71
  • 11