Moved the size listener to plugin side.flutter-beta
| @@ -16,7 +16,6 @@ class QRViewExample extends StatefulWidget { | |||||
| } | } | ||||
| class _QRViewExampleState extends State<QRViewExample> { | class _QRViewExampleState extends State<QRViewExample> { | ||||
| Barcode result; | Barcode result; | ||||
| QRViewController controller; | QRViewController controller; | ||||
| final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); | final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); | ||||
| @@ -13,4 +13,4 @@ class Barcode { | |||||
| /// Raw bytes are only supported by Android. | /// Raw bytes are only supported by Android. | ||||
| final List<int> rawBytes; | final List<int> rawBytes; | ||||
| } | |||||
| } | |||||
| @@ -56,13 +56,10 @@ extension BarcodeTypesExtension on BarcodeFormat { | |||||
| return index; | return index; | ||||
| } | } | ||||
| BarcodeFormat fromString(String format) { | |||||
| } | |||||
| BarcodeFormat fromString(String format) {} | |||||
| String get formatName { | String get formatName { | ||||
| switch (this) { | switch (this) { | ||||
| case BarcodeFormat.aztec: | case BarcodeFormat.aztec: | ||||
| return 'AZTEC'; | return 'AZTEC'; | ||||
| break; | break; | ||||
| @@ -117,5 +114,4 @@ extension BarcodeTypesExtension on BarcodeFormat { | |||||
| } | } | ||||
| return 'NOT_VALID'; | return 'NOT_VALID'; | ||||
| } | } | ||||
| } | |||||
| } | |||||
| @@ -4,4 +4,4 @@ enum CameraFacing { | |||||
| /// Shows front facing camera. | /// Shows front facing camera. | ||||
| front | front | ||||
| } | |||||
| } | |||||
| @@ -11,4 +11,4 @@ class CameraException implements Exception { | |||||
| @override | @override | ||||
| String toString() => 'CameraException($code, $description)'; | String toString() => 'CameraException($code, $description)'; | ||||
| } | |||||
| } | |||||
| @@ -10,4 +10,4 @@ class SystemFeatures { | |||||
| final bool hasFlash; | final bool hasFlash; | ||||
| final bool hasFrontCamera; | final bool hasFrontCamera; | ||||
| final bool hasBackCamera; | final bool hasBackCamera; | ||||
| } | |||||
| } | |||||