skip to Main Content

Flutter: how to select animation direction based on value

I have this animated container: AnimatedContainer( width: ScreenSize.getScreenWidth(context), height: _selectAll ? 10 : bottomBarHeight, color: _selectAll ? Colors.red : Colors.green, duration: const Duration(seconds: 2), curve: Curves.fastLinearToSlowEaseIn, child: const FlutterLogo(size: 75), ), I want that when _selectAll is true, the container…

VIEW QUESTION
Back To Top
Search