@@ -334,9 +334,11 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
setState(() {
executionState = ExecutionState.successful;
Future.delayed(const Duration(seconds: 2), () {
- setState(() {
- executionState = ExecutionState.idle;
- });
+ if (mounted) {
+ setState(() {
+ executionState = ExecutionState.idle;
+ });
+ }
});
}