From 6238a86fa530868ea1ca62688da422c2e66aa451 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Mon, 21 Dec 2020 20:45:00 +0100 Subject: [PATCH] Updated barcode check to inline check. Updated README.md. --- example/lib/main.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 5134972..68efd50 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -148,10 +148,10 @@ class _QRViewExampleState extends State { 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(