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