Skip to content

Commit 625106b

Browse files
committed
refactor: Enhance AiBarcodeScanner and related components
- Major refactor of AiBarcodeScanner class with improved parameters and UI enhancements. - Updated overlay and scanner border painting logic for better customization. - Refactored error handling in ErrorBuilder to provide more context. - Introduced GalleryButtonType enum for clearer button type management. - Improved documentation and examples for better clarity on usage. - Fixed various issues related to state management and UI responsiveness.
1 parent 676ea23 commit 625106b

File tree

10 files changed

+595
-490
lines changed

10 files changed

+595
-490
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
**Improvements:**
44

5-
- Added comprehensive documentation for supported barcode formats including PDF417
6-
- Updated example to demonstrate PDF417 format configuration
7-
- Enhanced README with format configuration examples
85
- Added comprehensive documentation for supported barcode formats including PDF417
96
- Updated example to demonstrate PDF417 format configuration
107
- Enhanced README with format configuration examples
@@ -25,6 +22,7 @@
2522
- Added platform support limitations documentation
2623
- Enhanced usage examples with best practices
2724
- Added known limitations section for dependency-related issues
25+
- Major changes in AiBarcodeScanner class with new parameters and ui improvements, read the migration guide for more details.
2826

2927
## 6.0.1
3028

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class _HomePageState extends State<HomePage> {
4848
/// You can write your own logic here.
4949
debugPrint("Barcode scanner disposed!");
5050
},
51-
hideGalleryButton: false,
5251
controller: MobileScannerController(
5352
detectionSpeed: DetectionSpeed.noDuplicates,
5453
// formats: [

lib/ai_barcode_scanner.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// lib/ai_barcode_scanner.dart
12
library ai_barcode_scanner;
23

34
export 'package:mobile_scanner/mobile_scanner.dart';
45

56
export 'src/ai_barcode_scanner.dart';
6-
export 'src/overlay.dart';
7+
export 'src/overlay.dart' show ScannerOverlayConfig; // Only export the config

0 commit comments

Comments
 (0)