Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Added and removed: Disposal of scanner controller and removal of old scanning package

Muhammed Ayimenab2eb77722ea
diff --git a/lib/ui/settings/data/import/analyze_qr_code.dart b/lib/ui/settings/data/import/analyze_qr_code.dart
index ada028d169..fe384d93cc 100644
--- a/lib/ui/settings/data/import/analyze_qr_code.dart
+++ b/lib/ui/settings/data/import/analyze_qr_code.dart
@@ -30,6 +30,13 @@ class _QrScannerState extends State<QrScanner> {
detectionSpeed: DetectionSpeed.normal,
facing: CameraFacing.back,
);
+
+ @override
+ void dispose() {
+ scannerController.dispose();
+ super.dispose();
+ }
+
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
diff --git a/pubspec.lock b/pubspec.lock
index 9dd3376236..f4581c0eb8 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -1135,14 +1135,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.0"
- qr_code_scanner:
- dependency: "direct main"
- description:
- name: qr_code_scanner
- sha256: f23b68d893505a424f0bd2e324ebea71ed88465d572d26bb8d2e78a4749591fd
- url: "https://pub.dev"
- source: hosted
- version: "1.0.1"
qr_flutter:
dependency: "direct main"
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index 811900f44d..5e2acc5652 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -69,7 +69,6 @@ dependencies:
pinput: ^1.2.2
pointycastle: ^3.7.3
protobuf: ^3.0.0
- qr_code_scanner: ^1.0.1
qr_flutter: 4.0.0
sentry: ^7.9.0
sentry_flutter: ^7.9.0