Showing
2 changed files
with
5 additions
and
6 deletions
| @@ -47,9 +47,9 @@ class _BarcodeScannerReturningImageState | @@ -47,9 +47,9 @@ class _BarcodeScannerReturningImageState | ||
| 47 | fit: BoxFit.contain, | 47 | fit: BoxFit.contain, |
| 48 | ), | 48 | ), |
| 49 | ) | 49 | ) |
| 50 | - : Container( | 50 | + : const ColoredBox( |
| 51 | color: Colors.white, | 51 | color: Colors.white, |
| 52 | - child: const Center( | 52 | + child: Center( |
| 53 | child: Text( | 53 | child: Text( |
| 54 | 'Your scanned barcode will appear here!', | 54 | 'Your scanned barcode will appear here!', |
| 55 | ), | 55 | ), |
| @@ -85,7 +85,7 @@ class _BarcodeScannerReturningImageState | @@ -85,7 +85,7 @@ class _BarcodeScannerReturningImageState | ||
| 85 | child: Row( | 85 | child: Row( |
| 86 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, | 86 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
| 87 | children: [ | 87 | children: [ |
| 88 | - Container( | 88 | + ColoredBox( |
| 89 | color: arguments != null && !arguments!.hasTorch | 89 | color: arguments != null && !arguments!.hasTorch |
| 90 | ? Colors.red | 90 | ? Colors.red |
| 91 | : Colors.white, | 91 | : Colors.white, |
| @@ -12,13 +12,12 @@ dependencies: | @@ -12,13 +12,12 @@ dependencies: | ||
| 12 | sdk: flutter | 12 | sdk: flutter |
| 13 | flutter_web_plugins: | 13 | flutter_web_plugins: |
| 14 | sdk: flutter | 14 | sdk: flutter |
| 15 | - json_serializable: ^6.3.1 | 15 | + js: ^0.6.3 |
| 16 | + | ||
| 16 | 17 | ||
| 17 | dev_dependencies: | 18 | dev_dependencies: |
| 18 | - build_runner: ^2.2.0 | ||
| 19 | flutter_test: | 19 | flutter_test: |
| 20 | sdk: flutter | 20 | sdk: flutter |
| 21 | - json_annotation: ^4.6.0 | ||
| 22 | lint: ^1.10.0 | 21 | lint: ^1.10.0 |
| 23 | 22 | ||
| 24 | flutter: | 23 | flutter: |
-
Please register or login to post a comment