Impellers, Flutter, Flutter App Development, Rendering, Rendering Engine.
Widget build(BuildContext context) { return GestureDetector( onTap: () { setState(() { _selected = !_selected; }); }, child: AnimatedContainer( duration: Duration(seconds: 1), width: _selected ? 200 : 100, height: _selected ? 200 : 100, color: _selected ? Colors.blue : Colors.red, ), ); } }