From 76ded232be3a045219a11fe15ec3404591a261c7 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:15:56 +0530 Subject: [PATCH 1/2] Fix bug in cancelling timer --- lib/utils/fake_progress.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/fake_progress.dart b/lib/utils/fake_progress.dart index adcc3ee58..9f4a84791 100644 --- a/lib/utils/fake_progress.dart +++ b/lib/utils/fake_progress.dart @@ -7,7 +7,7 @@ typedef FakeProgressCallback = void Function(int count); class FakePeriodicProgress { final FakeProgressCallback? callback; final Duration duration; - late Timer _timer; + Timer? _timer; bool _shouldRun = true; int runCount = 0; @@ -24,7 +24,7 @@ class FakePeriodicProgress { void stop() { if (_shouldRun) { _shouldRun = false; - _timer.cancel(); + _timer?.cancel(); } } From dbfeab1f0e9f81d8bb4cf9c44416978a10a0ffce Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:16:40 +0530 Subject: [PATCH 2/2] Bump version 0.7.91+491 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 9bccb5e3d..a6c5e9823 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ description: ente photos application # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.7.90+490 +version: 0.7.91+491 environment: sdk: ">=3.0.0 <4.0.0"