juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
1.01k stars 802 forks source link

[BUG] #707

Open yashwanth-notyashwant opened 1 year ago

yashwanth-notyashwant commented 1 year ago

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)