diff --git a/.pubignore b/.pubignore index b25e89c..3b45e37 100644 --- a/.pubignore +++ b/.pubignore @@ -29,7 +29,6 @@ build/ # Ignore Example and ZXScanner folders -example/ zxscanner/ src/zxing/* diff --git a/lib/src/logic/barcode_encoder.dart b/lib/src/logic/barcode_encoder.dart index 35f9ba5..f240e15 100644 --- a/lib/src/logic/barcode_encoder.dart +++ b/lib/src/logic/barcode_encoder.dart @@ -2,9 +2,9 @@ part of 'zxing.dart'; // Encode a string into a barcode Encode zxingEncodeBarcode({ - required String contents, - required EncodeParams params, - }) { + required String contents, + required EncodeParams params, +}) { return bindings .encodeBarcode( contents.toNativeUtf8().cast(), diff --git a/lib/src/ui/scanner_overlay.dart b/lib/src/ui/scanner_overlay.dart index 233466a..36c1f01 100644 --- a/lib/src/ui/scanner_overlay.dart +++ b/lib/src/ui/scanner_overlay.dart @@ -1,8 +1,7 @@ import 'package:flutter/material.dart'; abstract class ScannerOverlay extends ShapeBorder { - - const ScannerOverlay ({ + const ScannerOverlay({ this.borderColor = Colors.red, this.borderWidth = 3.0, this.overlayColor = const Color.fromRGBO(0, 0, 0, 40), @@ -17,7 +16,6 @@ abstract class ScannerOverlay extends ShapeBorder { final double borderLength; abstract final double cutOutSize; - @override EdgeInsetsGeometry get dimensions => const EdgeInsets.all(10); @@ -57,5 +55,4 @@ abstract class ScannerOverlay extends ShapeBorder { @override ScannerOverlay scale(double t); - } diff --git a/pubspec.yaml b/pubspec.yaml index b33a90a..8cbe61b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_zxing description: A barcode scanner and generator natively in Flutter with Dart FFI based on ZXing. -version: 1.0.0-beta.1 +version: 1.0.0-beta.2 repository: https://github.com/khoren93/flutter_zxing environment: