From 697087deac7507eff548db36159bcd00ddb6b7d7 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Thu, 17 Dec 2020 09:30:13 +0100 Subject: [PATCH] Updated barcode check to inline check. Updated README.md. --- example/lib/main.dart | 3 ++- lib/src/qr_code_scanner.dart | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index fd8aeba..4d5680c 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -45,7 +45,8 @@ class _QRViewExampleState extends State { mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ if (result != null) - Text('Barcode Type: ${describeEnum(result.format)} Data: ${result.code}') + Text( + 'Barcode Type: ${describeEnum(result.format)} Data: ${result.code}') else Text('Scan a code'), Row( diff --git a/lib/src/qr_code_scanner.dart b/lib/src/qr_code_scanner.dart index bbe3df1..451f240 100644 --- a/lib/src/qr_code_scanner.dart +++ b/lib/src/qr_code_scanner.dart @@ -106,8 +106,6 @@ class QRView extends StatefulWidget { } class _QRViewState extends State { - - @override Widget build(BuildContext context) { return Stack(