Skip to content

Commit

Permalink
Merge pull request #371 from vanlooverenkoen/bugfix/#250-zoomed-ios-c…
Browse files Browse the repository at this point in the history
…amera

Bugfix/#250 zoomed ios camera
  • Loading branch information
juliansteenbakker authored Jul 16, 2021
2 parents b0e3e81 + a570034 commit c89f1ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.2
#### Bugfixes
* Increased delay to fix QRView opening zoomed in on some devices by adding small delay to updateDimensions(). (#250)

## 0.5.1
Removed web from library export.

Expand Down
2 changes: 1 addition & 1 deletion lib/src/qr_code_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: qr_code_scanner
description: QR code scanner that can be embedded inside flutter. It uses zxing in Android and MTBBarcode scanner in iOS.
version: 0.5.1
version: 0.5.2
homepage: https://juliuscanute.com
repository: https://github.com/juliuscanute/qr_code_scanner

Expand Down

0 comments on commit c89f1ea

Please sign in to comment.