barcode_scanner_plugin 0.2.0 copy "barcode_scanner_plugin: ^0.2.0" to clipboard
barcode_scanner_plugin: ^0.2.0 copied to clipboard

A powerful Flutter plugin for dual-mode barcode scanning. Supports dedicated PDA hardware via Broadcast Intents and smartphone cameras using CameraX and Google ML Kit. Features redesigned camera UI wi [...]

0.2.0 #

  • Major UI Redesign: Completely redesigned camera scan interface:
    • Transparent scan frame with clipOutRect instead of PorterDuff CLEAR - camera preview shows through the frame area clearly.
    • Blue semi-transparent overlay (#2196F3 at 53% alpha) around the frame for better visual focus.
    • Gradient blur/feather edges using 4 LinearGradients + 4 RadialGradients for a soft transition between overlay and frame.
    • Touch zoom wheel on the right side with visual track, green thumb indicator, and +/- buttons (replaces old SeekBar).
    • Lightning bolt flash icon (yellow when on, white when off) with scale animation feedback.
    • Close button with X icon drawable.
  • Performance Optimization:
    • Zero allocations in onDraw() (all Paint objects pre-allocated as fields).
    • postInvalidateOnAnimation() for vsync-aligned rendering instead of invalidate().
    • Reusable RectF and Path to avoid GC churn.
    • Frame analysis throttled to 150ms interval to reduce CPU/battery usage.
    • Scan line early-return optimization when outside visible area.
  • Bilingual Documentation: All Kotlin source files now have comprehensive comments in both English and Vietnamese.
  • Example App Redesign: Updated example/lib/main.dart with Material 3, loading states, and usage guide.

0.1.5 #

  • New Feature: Added Camera Frame (PreviewView) with fullscreen preview for barcode scanning.
  • New Feature: Added Zoom functionality via SeekBar slider and pinch-to-zoom gesture.
  • Improvement: Camera UI now provides interactive zoom control (0x–1x linear zoom) for better barcode detection at varying distances.
  • pubspec.yaml version bump and added pub.dev topics for discoverability.

0.1.4 #

  • Bugfix: Added missing import android.os.Build and fixed syntax error in registerBarcodeReceiver() that caused build failure in v0.1.3.
  • pubspec.yaml version bump.

0.1.3 #

  • Android 13+ Compatibility: Added RECEIVER_EXPORTED flag when registering BroadcastReceiver on Android 13 (API 33) and above to comply with new runtime broadcast receiver restrictions.

0.1.2 #

  • Improvement: Removed cached stream variable in barcodeStream to avoid "Stream already subscribed" errors.
  • Removed getPlatformVersion(): Xóa method lấy phiên bản OS không cần thiết khỏi toàn bộ codebase (Dart, Kotlin, Swift, tests) để giữ API plugin tập trung vào quét mã vạch.
  • Documentation: Added comprehensive comments and KDoc documentation for all Dart, Kotlin, and Swift source files.
  • Updated pubspec.yaml repository URL and version.

0.1.1 #

  • New Feature: Added Camera Scanning support using CameraX and Google ML Kit.
  • Support for regular smartphones without dedicated hardware scanners.
  • Dual-mode scanning: Detects hardware PDA scan intents or uses the camera.
  • Improved documentation and usage examples in README.

0.1.0 #

  • New Feature: Added Camera Scanning support using CameraX and Google ML Kit.
  • Support for regular smartphones without dedicated hardware scanners.
  • Dual-mode scanning: Detects hardware PDA scan intents or uses the camera.
  • Improved documentation and usage examples in README.

0.0.1 #

  • Initial release.
  • Support hardware barcode scanning via Android Broadcast Intent and EventChannel.
  • Added Federated Plugin Architecture layout.
1
likes
0
points
366
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful Flutter plugin for dual-mode barcode scanning. Supports dedicated PDA hardware via Broadcast Intents and smartphone cameras using CameraX and Google ML Kit. Features redesigned camera UI with transparent scan frame, touch zoom wheel, flash toggle, and blur-edge overlay.

Repository (GitHub)
View/report issues

Topics

#barcode #scanner #camera #pda #qr-code

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on barcode_scanner_plugin

Packages that implement barcode_scanner_plugin