Noticed during additional building & testing that the widget can be re-built with new values, but a re-used state. When that happens, the previous version did not trigger the animation correctly.
This resolves the issue by resetting the animation controller if the state's different from the provided arguments.
Noticed during additional building & testing that the widget can be re-built with new values, but a re-used state. When that happens, the previous version did not trigger the animation correctly.
This resolves the issue by resetting the animation controller if the state's different from the provided arguments.
Sorry for not catching this in #1.
Also, this replaces #2.