diff --git a/lib/src/qr_code_scanner.dart b/lib/src/qr_code_scanner.dart index a3cefd8..d4bc951 100644 --- a/lib/src/qr_code_scanner.dart +++ b/lib/src/qr_code_scanner.dart @@ -329,7 +329,7 @@ class QRViewController { static Future updateDimensions(GlobalKey key, MethodChannel channel, {QrScannerOverlayShape? overlay}) async { if (defaultTargetPlatform == TargetPlatform.iOS) { - // Add small delay to ensure the renderbox is loaded + // Add small delay to ensure the render box is loaded await Future.delayed(Duration(milliseconds: 100)); final renderBox = key.currentContext!.findRenderObject() as RenderBox; try {