I'm trying to animate text to switch between two values
AnimatedSwitcher(
duration: Duration(milliseconds: 400),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
(_smallTitle == true) ? Text('Text1/', style:TextStyle(fontSize: 12.0)) : Container(),
Text(
(_smallTitle == false) ? _largeHeaderText : _smallHeaderText,
),
],
),
),
This code does successfully switch the text when I trigger a change in my '_smallTitle` bool value. But the change is not animated at all
Any idea what I'm doing wrong?