Skip to content

armgit / ente

Public Imported from GitHub
0

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

Updated: Different toast, based different condition

Muhammed Ayimenc6811ffadc56
diff --git a/lib/ui/settings/data/import/analyze_qr_code.dart b/lib/ui/settings/data/import/analyze_qr_code.dart
index 8c64c71adf..aeedd13a84 100644
--- a/lib/ui/settings/data/import/analyze_qr_code.dart
+++ b/lib/ui/settings/data/import/analyze_qr_code.dart
@@ -143,11 +143,17 @@ class _QrScannerState extends State<QrScanner> {
if (!mounted) return;
} else {
if (!mounted) return;
- showToast(context, "Failed to scan image");
+ showToast(
+ context,
+ "Unable to recognize a valid code from the uploaded image",
+ );
}
} else {
if (!mounted) return;
- showToast(context, "Image not selected");
+ showToast(
+ context,
+ "Qr code image not selected",
+ );
}
}
}
@@ -190,12 +196,9 @@ class _QrScannerState extends State<QrScanner> {
height: 25,
),
Text(
- l10n.scan,
+ l10n.scanACode,
textAlign: TextAlign.center,
style: const TextStyle(
- letterSpacing: 0.5,
- fontWeight: FontWeight.w600,
- fontSize: 14,
color: Colors.black,
),
),