width:

100

animation

value

100

child:

widget

child1

),

SizedBox

width:

100

animation

value

100

child:

widget

child2

),

],

);

Watch for usages of Animation and LayoutBuilder in the same widget.
Animations have internal mutable state that changes on every frame. If the
logic of your builder function depends on the value of the animation, it may
require a setState to update in tandem with the animation. To do that, add an
animation listener that calls setState, like so:

Animation

animation

create

animation