Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #707

Open
yashwanth-notyashwant opened this issue Nov 5, 2023 · 0 comments
Open

[BUG] #707

yashwanth-notyashwant opened this issue Nov 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yashwanth-notyashwant
Copy link

If i increase the scanning area in this code Widget _buildQrView(BuildContext context) {
// For this example we check how width or tall the device is and change the scanArea and overlay accordingly.
var scanArea = 400.0;
// var scanArea = (MediaQuery.of(context).size.width < 400 ||
// MediaQuery.of(context).size.height < 400)
// ? 150.0
// : 350.0;
// To ensure the Scanner view is properly sizes after rotation
// we need to listen for Flutter SizeChanged notification and update controller
return QRView(
key: qrKey,
onQRViewCreated: _onQRViewCreated,
overlay: QrScannerOverlayShape(
borderColor: Colors.blue,
borderRadius: 10,
borderLength: 30,
borderWidth: 10,
cutOutSize: scanArea),
onPermissionSet: (ctrl, p) => _onPermissionSet(context, ctrl, p),
);
} it just increases the overlay size not the actual scanning area , the actual scanning happens on a very small area that is in the center of the bigger scanning area (Overlay area)

@yashwanth-notyashwant yashwanth-notyashwant added the bug Something isn't working label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant