Browse Source

version: 1.0.0-beta.2

pull/76/head
Khoren Markosyan 2 years ago
parent
commit
94e2c88941
  1. 1
      .pubignore
  2. 6
      lib/src/logic/barcode_encoder.dart
  3. 5
      lib/src/ui/scanner_overlay.dart
  4. 2
      pubspec.yaml

1
.pubignore

@ -29,7 +29,6 @@
build/
# Ignore Example and ZXScanner folders
example/
zxscanner/
src/zxing/*

6
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<Char>(),

5
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);
}

2
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:

Loading…
Cancel
Save