Questions tagged [animatedcontainer]
24 questions
0
votes
0 answers
Flutter: add animation to a list of animated container
I have a list of animatedContainers that get displayed based on their list index. I'd like to add animation fade-in/fade-out when switching between them. What is the easiest way to do this?

May
- 93
- 7
0
votes
2 answers
Set state separately for each ListView element. Flutter
Every element of my ListView is AnimatedContainer
AnimatedContainer(
height: _height,
...)
While changing _height via setState it works for every ListView element of course.
Future _changeHeight() async {
setState(() {
_height…

meet Solo
- 25
- 6
0
votes
1 answer
Flutter animated container change size of child widget
I'm trying to create a container in which I can perform two gesture: onTapDown and onTapUp. I want to decrease the dimension of my container when I perform onTapDown.
What I want is something like that:
https://i.imgur.com/7hW2Cn1.gifv
The problem…

carlo97
- 169
- 1
- 3
- 12
0
votes
1 answer
Animated Container with scrolling list - Flutter
I have a fairly complicated screen I am trying to implement in Flutter.
It's a scrollview with a parallax background and...kind of a collapsing toolbar.
I know I have to probably use a NestedScrollView and SliverAppBar(?), but not sure where to…

Nelson.b.austin
- 3,080
- 6
- 37
- 63
0
votes
0 answers
Flutter problem with AnimatedController Widget
I am currently working on an application and I have a warning that I can't get rid of...
Summary: A RenderFlex overflowed by 34 pixels on the right -> When you
press the button to expand container's width using an AnimatedController.
I use a…

DeltaReloadX
- 21
- 4
0
votes
1 answer
How to create an animated container that hide/show widget in flutter
I wanted to create a Container which looks like a Card with a small icon, when this icon is clicked the container height changed and show different component inside.
here is the expected result

Ishak Hari
- 148
- 15
0
votes
1 answer
Can I change margin in AnimatedContainer?
I'm building a list using ListWheelScrollView and I would like to change margin value of container below the centre one. I'm also using AnimatedContainer.
margin: const EdgeInsets.only( left: x == selected ? 13 : 10),
This code gives me error :…

Wiktor_B
- 395
- 1
- 4
- 8
-1
votes
1 answer
Flutter: Animated Container with dynamic width dependent on its content
I am trying to make custom Navigation Bar. I need to animate the width of each item according to it's content. using Animated Container right now and width hardcoded. I need that width to be variable. Dont wanna use flexible with the text widget…

Muneeb Ahmad
- 79
- 3
- 10
-1
votes
1 answer
how do i change the color of a single container when they are part of an array?
I am trying to highlight the color of a GestureDetector when its tapped, I want only the tapped container color to be changed, but my GestureDetector is created from an array so when i am changing one, everything gets changed.
How do I reach to my…

akrsha
- 21
- 4