From e3bb6d7b0196194612b694c1bac0117811475f25 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Wed, 23 Feb 2022 13:39:44 +0100 Subject: [PATCH 1/2] imp: export MobileScannerArguments --- CHANGELOG.md | 6 ++++++ lib/mobile_scanner.dart | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45a4b870f..1214f0742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.1.2 +* MobileScannerArguments is now exported. [7](https://github.com/juliansteenbakker/mobile_scanner/issues/7) + +Bugfixes: +* Fixed application crashing when stop() or start() is called multiple times. [5](https://github.com/juliansteenbakker/mobile_scanner/issues/5) + ## 0.1.1 mobile_scanner is now compatible with sdk >= 2.12 and flutter >= 2.2.0 diff --git a/lib/mobile_scanner.dart b/lib/mobile_scanner.dart index bdbdf5d51..fdc489201 100644 --- a/lib/mobile_scanner.dart +++ b/lib/mobile_scanner.dart @@ -2,4 +2,5 @@ library mobile_scanner; export 'src/mobile_scanner.dart'; export 'src/mobile_scanner_controller.dart'; +export 'src/mobile_scanner_arguments.dart'; export 'src/objects/barcode.dart'; From c421f8145b12bae6cab54c6ee0c9779444f31ea1 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Wed, 23 Feb 2022 13:43:23 +0100 Subject: [PATCH 2/2] style: remove unused import --- lib/src/mobile_scanner.dart | 2 -- lib/src/mobile_scanner_controller.dart | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/src/mobile_scanner.dart b/lib/src/mobile_scanner.dart index ad18863e8..b7ed13fb2 100644 --- a/lib/src/mobile_scanner.dart +++ b/lib/src/mobile_scanner.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; -import 'mobile_scanner_arguments.dart'; - enum Ratio { ratio_4_3, ratio_16_9 } /// A widget showing a live camera preview. diff --git a/lib/src/mobile_scanner_controller.dart b/lib/src/mobile_scanner_controller.dart index 33de0f694..fc5c6aa67 100644 --- a/lib/src/mobile_scanner_controller.dart +++ b/lib/src/mobile_scanner_controller.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.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.