Kaynağa Gözat
Updated barcode check to inline check. Updated README.md.
flutter-beta
Julian Steenbakker
5 yıl önce
ebeveyn
işleme
697087deac
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 16E437C7A3D94250
2 değiştirilmiş dosya ile
2 ekleme ve
3 silme
-
example/lib/main.dart
-
lib/src/qr_code_scanner.dart
|
|
|
@@ -45,7 +45,8 @@ class _QRViewExampleState extends State<QRViewExample> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
children: <Widget>[ |
|
|
|
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( |
|
|
|
|
|
|
|
@@ -106,8 +106,6 @@ class QRView extends StatefulWidget { |
|
|
|
} |
|
|
|
|
|
|
|
class _QRViewState extends State<QRView> { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Stack( |
|
|
|
|