瀏覽代碼

Updated barcode check to inline check. Updated README.md.

flutter-beta
Julian Steenbakker 5 年之前
父節點
當前提交
6238a86fa5
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 16E437C7A3D94250
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      example/lib/main.dart

+ 3
- 3
example/lib/main.dart 查看文件

@@ -148,10 +148,10 @@ class _QRViewExampleState extends State<QRViewExample> {

Widget _buildQrView(BuildContext context) {
// For this example we check how width or tall the device is and change the scanArea and overlay accordingly.
double scanArea = (MediaQuery.of(context).size.width < 500 ||
var scanArea = (MediaQuery.of(context).size.width < 500 ||
MediaQuery.of(context).size.height < 400)
? 150
: 300;
? 150.0
: 300.0;
// To ensure the Scanner view is properly sizes after rotation
// we need to listen for Flutter SizeChanged notification and update controller
return NotificationListener<SizeChangedLayoutNotification>(


Loading…
取消
儲存