Skip to content

Commit f447010

Browse files
committed
## 0.0.7-dev.1
- error widget fixed
1 parent ae45ee3 commit f447010

File tree

5 files changed

+8
-28
lines changed

5 files changed

+8
-28
lines changed

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"android":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"macos":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","dependencies":[]}]},"dependencyGraph":[{"name":"mobile_scanner","dependencies":[]}],"date_created":"2023-06-28 02:12:43.579902","version":"3.10.5"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"android":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"macos":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"mobile_scanner","path":"/Users/arvind/.pub-cache/hosted/pub.dev/mobile_scanner-3.3.0/","dependencies":[]}]},"dependencyGraph":[{"name":"mobile_scanner","dependencies":[]}],"date_created":"2023-07-03 13:36:32.059509","version":"3.10.5"}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.7-dev.1
2+
3+
- error widget fixed
4+
15
## 0.0.7
26

37
- Dependency updates

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ packages:
1515
path: ".."
1616
relative: true
1717
source: path
18-
version: "0.0.7"
18+
version: "1.0.0-dev.1"
1919
async:
2020
dependency: transitive
2121
description:

lib/src/ai_barcode_scanner.dart

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -196,31 +196,7 @@ class _AiBarcodeScannerState extends State<AiBarcodeScanner> {
196196
MobileScanner(
197197
controller: controller,
198198
fit: widget.fit,
199-
errorBuilder: widget.errorBuilder ??
200-
(context, error, child) {
201-
return const ColoredBox(
202-
color: Colors.black,
203-
child: Center(
204-
child: Column(
205-
mainAxisAlignment: MainAxisAlignment.center,
206-
crossAxisAlignment: CrossAxisAlignment.center,
207-
mainAxisSize: MainAxisSize.min,
208-
children: [
209-
Icon(
210-
Icons.no_photography,
211-
color: Colors.white,
212-
size: 100,
213-
),
214-
SizedBox(height: 20),
215-
Text(
216-
"Failed to load camera.",
217-
style: TextStyle(color: Colors.white),
218-
),
219-
],
220-
),
221-
),
222-
);
223-
},
199+
errorBuilder: widget.errorBuilder,
224200
onScannerStarted: widget.onScannerStarted,
225201
placeholderBuilder: widget.placeholderBuilder,
226202
scanWindow: widget.scanWindow,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ai_barcode_scanner
22
description: A universal AI barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
3-
version: 0.0.7
3+
version: 1.0.0-dev.1
44
homepage: https://mohesu.com
55
repository: https://github.com/mohesu/barcode_scanner.git
66

0 commit comments

Comments
 (0)