Przeglądaj źródła

Updated the the initial delay for iOS

flutter-beta
Koen Van Looveren 5 lat temu
rodzic
commit
2ef8525909
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      lib/src/qr_code_scanner.dart

+ 1
- 1
lib/src/qr_code_scanner.dart Wyświetl plik

@@ -327,7 +327,7 @@ class QRViewController {
{QrScannerOverlayShape? overlay}) async {
if (defaultTargetPlatform == TargetPlatform.iOS) {
// Add small delay to ensure the render box is loaded
await Future.delayed(Duration(milliseconds: 100));
await Future.delayed(Duration(milliseconds: 300));
if (key.currentContext == null) return false;
final renderBox = key.currentContext!.findRenderObject() as RenderBox;
try {


Ładowanie…
Anuluj
Zapisz