From f8f898b3e58a4df3f4032146d581e86b66c70169 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Tue, 29 Aug 2023 13:12:52 +0200 Subject: [PATCH] style: apply lint --- lib/src/mobile_scanner.dart | 2 +- lib/src/mobile_scanner_controller.dart | 2 +- lib/src/web/base.dart | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/mobile_scanner.dart b/lib/src/mobile_scanner.dart index fb3262910..b7aaf3b0f 100644 --- a/lib/src/mobile_scanner.dart +++ b/lib/src/mobile_scanner.dart @@ -272,7 +272,7 @@ class _MobileScannerState extends State alignment: Alignment.center, children: [ _scanner(value.size, value.webId, value.textureId), - widget.overlay! + widget.overlay!, ], ); } else { diff --git a/lib/src/mobile_scanner_controller.dart b/lib/src/mobile_scanner_controller.dart index 63c9f8c69..9fcf8a5f6 100644 --- a/lib/src/mobile_scanner_controller.dart +++ b/lib/src/mobile_scanner_controller.dart @@ -384,7 +384,7 @@ class MobileScannerController { barcodes: [ Barcode( rawValue: (data as Map)['payload'] as String?, - ) + ), ], ), ); diff --git a/lib/src/web/base.dart b/lib/src/web/base.dart index 6659dfd51..dd8ef5553 100644 --- a/lib/src/web/base.dart +++ b/lib/src/web/base.dart @@ -80,7 +80,7 @@ mixin InternalStreamCreation on WebBarcodeReaderBase { 'video': VideoOptions( facingMode: cameraFacing == CameraFacing.front ? 'user' : 'environment', - ) + ), }; } else { constraints = {'video': true}; @@ -147,8 +147,8 @@ mixin InternalTorchDetection on InternalStreamCreation { final track = localMediaStream?.getVideoTracks(); await track?.first.applyConstraints({ 'advanced': [ - {'torch': enabled} - ] + {'torch': enabled}, + ], }); } }