Browse Source

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

flutter-beta
Julian Steenbakker 5 years ago
parent
commit
697087deac
No known key found for this signature in database GPG Key ID: 16E437C7A3D94250
2 changed files with 2 additions and 3 deletions
  1. +2
    -1
      example/lib/main.dart
  2. +0
    -2
      lib/src/qr_code_scanner.dart

+ 2
- 1
example/lib/main.dart View File

@@ -45,7 +45,8 @@ class _QRViewExampleState extends State<QRViewExample> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[ children: <Widget>[
if (result != null) if (result != null)
Text('Barcode Type: ${describeEnum(result.format)} Data: ${result.code}')
Text(
'Barcode Type: ${describeEnum(result.format)} Data: ${result.code}')
else else
Text('Scan a code'), Text('Scan a code'),
Row( Row(


+ 0
- 2
lib/src/qr_code_scanner.dart View File

@@ -106,8 +106,6 @@ class QRView extends StatefulWidget {
} }


class _QRViewState extends State<QRView> { class _QRViewState extends State<QRView> {


@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Stack( return Stack(


Loading…
Cancel
Save