I am looking to make a item that gets added and removed from list.
what I am looking for is to have the + icon and the - icon and animate between the 2 for a clean and smooth look.
I have the following code
Container(
padding: EdgeInsets.fromLTRB(0, 0, 20, 0),
child: AnimatedIcon(
icon: AnimatedIcons.home_menu,
progress: _animationController,
color: Colors.white,
))
with
void _handleOnPressed() {
setState(() {
isPlaying = !isPlaying;
isPlaying
? _animationController.forward()
: _animationController.reverse();
});
}
This for fine for the built in animated icons in flutter.
I am looking to use the + and the - icon, but with the same look.
Is there a way to do this?

