Julian Steenbakker

style: format

@@ -69,24 +69,19 @@ class _MobileScannerState extends State<MobileScanner> @@ -69,24 +69,19 @@ class _MobileScannerState extends State<MobileScanner>
69 return Container(color: Colors.black); 69 return Container(color: Colors.black);
70 } else { 70 } else {
71 controller.barcodes.listen( 71 controller.barcodes.listen(
72 - (a) =>  
73 - widget.onDetect!(a, value as MobileScannerArguments)); 72 + (a) => widget.onDetect!(a, value as MobileScannerArguments));
74 return ClipRect( 73 return ClipRect(
75 child: SizedBox( 74 child: SizedBox(
76 - width: MediaQuery  
77 - .of(context)  
78 - .size  
79 - .width,  
80 - height: MediaQuery  
81 - .of(context)  
82 - .size  
83 - .height, 75 + width: MediaQuery.of(context).size.width,
  76 + height: MediaQuery.of(context).size.height,
84 child: FittedBox( 77 child: FittedBox(
85 fit: widget.fit, 78 fit: widget.fit,
86 child: SizedBox( 79 child: SizedBox(
87 width: value.size.width, 80 width: value.size.width,
88 height: value.size.height, 81 height: value.size.height,
89 - child: kIsWeb ? HtmlElementView(viewType: value.webId!) : Texture(textureId: value.textureId!), 82 + child: kIsWeb
  83 + ? HtmlElementView(viewType: value.webId!)
  84 + : Texture(textureId: value.textureId!),
90 ), 85 ),
91 ), 86 ),
92 ), 87 ),
@@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
6 import 'package:flutter/services.dart'; 6 import 'package:flutter/services.dart';
7 import 'package:mobile_scanner/mobile_scanner.dart'; 7 import 'package:mobile_scanner/mobile_scanner.dart';
8 8
9 -import 'mobile_scanner_arguments.dart';  
10 import 'objects/barcode_utility.dart'; 9 import 'objects/barcode_utility.dart';
11 10
12 /// The facing of a camera. 11 /// The facing of a camera.
@@ -188,7 +187,6 @@ class MobileScannerController { @@ -188,7 +187,6 @@ class MobileScannerController {
188 size: Size(startResult['videoWidth'], startResult['videoHeight']), 187 size: Size(startResult['videoWidth'], startResult['videoHeight']),
189 hasTorch: hasTorch); 188 hasTorch: hasTorch);
190 } else { 189 } else {
191 -  
192 args.value = MobileScannerArguments( 190 args.value = MobileScannerArguments(
193 textureId: startResult['textureId'], 191 textureId: startResult['textureId'],
194 size: toSize(startResult['size']), 192 size: toSize(startResult['size']),