You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: