Julian Steenbakker

style: format

... ... @@ -69,24 +69,19 @@ class _MobileScannerState extends State<MobileScanner>
return Container(color: Colors.black);
} else {
controller.barcodes.listen(
(a) =>
widget.onDetect!(a, value as MobileScannerArguments));
(a) => widget.onDetect!(a, value as MobileScannerArguments));
return ClipRect(
child: SizedBox(
width: MediaQuery
.of(context)
.size
.width,
height: MediaQuery
.of(context)
.size
.height,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: FittedBox(
fit: widget.fit,
child: SizedBox(
width: value.size.width,
height: value.size.height,
child: kIsWeb ? HtmlElementView(viewType: value.webId!) : Texture(textureId: value.textureId!),
child: kIsWeb
? HtmlElementView(viewType: value.webId!)
: Texture(textureId: value.textureId!),
),
),
),
... ...
... ... @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:mobile_scanner/mobile_scanner.dart';
import 'mobile_scanner_arguments.dart';
import 'objects/barcode_utility.dart';
/// The facing of a camera.
... ... @@ -188,7 +187,6 @@ class MobileScannerController {
size: Size(startResult['videoWidth'], startResult['videoHeight']),
hasTorch: hasTorch);
} else {
args.value = MobileScannerArguments(
textureId: startResult['textureId'],
size: toSize(startResult['size']),
... ...