diff --git a/flutter_app_upgrade/lib/src/simple_app_upgrade.dart b/flutter_app_upgrade/lib/src/simple_app_upgrade.dart index d02ab25..0f0f250 100644 --- a/flutter_app_upgrade/lib/src/simple_app_upgrade.dart +++ b/flutter_app_upgrade/lib/src/simple_app_upgrade.dart @@ -349,9 +349,11 @@ class _SimpleAppUpgradeWidget extends State { } }); } catch (e) { - print('$e'); - _downloadProgress = 0; + print('simple app upgrade error >> $e'); _updateDownloadStatus(DownloadStatus.error,error: e); + setState(() { + _downloadProgress = 0; + }); } }