Aman-Malhotra / animate_icons

Use this plugin to animate any two icons like built in AnimatedIcons
MIT License
20 stars 16 forks source link

Prevent 'setState() called after dispose()' error #4

Closed proninyaroslav closed 3 years ago

proninyaroslav commented 3 years ago

This error happens if we call setState() on a State object for a widget that no longer appears in the widget tree. And also we need to call dispose() in AnimationController to properly release resources.