pharmago_packages 1.1.2 copy "pharmago_packages: ^1.1.2" to clipboard
pharmago_packages: ^1.1.2 copied to clipboard

Reusable Flutter components for pharmacy applications. Provides cross-platform widgets for barcode scanning (camera and external USB readers) and comprehensive PDF generation with KPIs, tables, and charts.

1.1.2 #

Features #

  • Added QrTrackerScanner: a full-area camera widget that auto-detects and live-tracks QR Codes (or any barcode format)
    • Detects multiple codes simultaneously, keeping each one highlighted (configurable via clearAfter) even when the camera reports them in alternating frames
    • Draws an overlay that follows each code as it moves, mapped from camera-image space to widget coordinates
    • Customizable overlay colors/style via QrDetectionOverlayStyle (border, fill, corner dots, crosshair, glow)
    • Customizable per-detection widget via labelBuilder, positioned automatically above each code
    • Customizable "N detected" indicator via countBuilder
    • onDetections callback exposing each QrDetection (barcode, value, corners, bounds, center) in widget coordinates

Improvements #

  • Decoupled the camera preview from the detection overlay so detections no longer rebuild the camera view, fixing a black-preview issue under high-frequency detection
  • Exported the vendored mobile_scanner public API (BarcodeFormat, BarcodeCapture, MobileScannerController, etc.) through pharmago_packages.dart

Documentation #

  • Added a "Live Camera Detection & Tracking" section to the README covering setup, color/style customization, and custom detection/count widgets
  • Added a full QR tracking example page to the example app

1.0.12 #

Changes #

  • Version bump

1.0.11 #

Features #

  • Added BarcodeScannerController for external scanner lifecycle management
    • Pause/resume scanning when displaying modals or bottom sheets
    • Camera preview remains active while paused for better UX
    • State management with BarcodeScannerState enum
    • Reset functionality for camera reinitialization

Improvements #

  • Enhanced BarcodeScannerWidget with controller support
  • Improved scanner widget architecture for better lifecycle control
  • Better state management during modal/overlay interactions
  • Updated documentation with controller usage examples

1.0.10 #

Features #

  • Added BarcodeScannerActionButton for customizable action buttons on scanner
  • New action button system with flexible positioning and styling
  • Improved scanner widget architecture with action buttons support

Improvements #

  • Enhanced BarcodeScannerWidget with enableActionButtons and actionButtons parameters
  • Deprecated BarcodeScannerWithSearch in favor of new action buttons approach
  • Better code organization and modularity

Documentation #

  • Added comprehensive barcode module documentation (barcode-docs.md)
    • Complete API reference for all barcode components
    • Configuration options and examples
    • Platform support matrix
    • Migration guide from deprecated components
    • Best practices and usage patterns

1.0.9 #

Features #

  • Enhanced barcode scanner with new configuration options
  • Improved scanner settings management

Improvements #

  • Refactored BarcodeScannerWidget for better maintainability
  • Enhanced BarcodeScannerSettings with additional options
  • Improved scanner overlay configuration
  • Added new translation keys for scanner UI

1.0.7 #

Features #

  • Added new configuration options for barcode scanner widget
  • Enhanced scanner behavior customization

Improvements #

  • Improved BarcodeScannerConfig with additional settings
  • Better scanner widget state management

1.0.6 #

Features #

  • Major improvements to barcode scanner module UI and configurations
  • Enhanced BarcodeScannerWithSearch component
  • New side action configurations

Improvements #

  • Refactored BarcodeScannerConfig with expanded options
  • Improved BarcodeScannerWidget with better UI handling
  • Enhanced side action widget with new features
  • Better example app structure with improved navigation

1.0.4 #

Features #

  • Added PDF section title configuration documentation
  • Enhanced PDF section models with title support

Improvements #

  • Improved documentation for PDF sections
  • Added PDF documentation file

1.0.3 #

Features #

  • Added PdfSectionTitleConfig for customizable section titles in PDF
  • Added PdfCustomWidget for custom widget support in PDF builder
  • Enhanced PDF builder with section title support

Improvements #

  • Improved PdfKpiSection with title configuration
  • Enhanced PdfTableSection with title support
  • Enhanced PdfChartSection with title configuration
  • Enhanced PdfFormSection with title support
  • Updated PDF documentation with new features

1.0.2 #

Features #

  • Added BarcodeScannerWithSearch widget for scanner with integrated search field
  • Added BarcodeSideActionConfig and BarcodeSideActionWidget for side actions
  • Added BarcodeScannerSettings widget for scanner configuration UI
  • Added internationalization system (PharmagoPackageTranslations)
  • Added PdfIconHelper for icon support in PDF
  • Added PdfKpiIconStyle model for KPI icons styling

Improvements #

  • Enhanced BarcodeScannerConfig with expanded configuration options
  • Improved BarcodeScannerOverlay with better customization
  • Refactored BarcodeScannerWidget with advanced features
  • Enhanced PdfKpiSection with icon support
  • Improved PdfTableSection with additional options
  • Enhanced PdfFormSection with better styling
  • Added comprehensive PDF documentation

1.0.1 #

Features #

  • Added PdfFormSection for form-style layouts in PDF generation
  • Enhanced barcode scanner widget with additional options

Improvements #

  • Improved PDF generation capabilities
  • Enhanced example application

1.0.0 #

Initial release of pharmago_packages.

Features #

Barcode Scanning

  • Camera-based barcode scanning with customizable overlay and controls (Android, iOS, Web)
  • External keyboard/USB barcode reader support for all platforms
  • Auto-focus and zoom controls
  • Flash/torch support
  • Configurable scan area with expand/collapse functionality
  • Audio feedback (beep sound) on successful scan
  • Cooldown between scans to prevent duplicate reads

PDF Generation

  • Custom headers with logo, app name, title, and subtitle
  • KPI sections with Bootstrap-like grid system (col1-col12)
  • Tables with customizable headers, body, and footers
  • Charts: Bar (vertical/horizontal), Pie, and Line charts
  • Custom footers with pagination
  • Portrait and landscape page orientations
  • Page limit protection with configurable max pages

Platform Support #

  • Android: Full support for camera scanner and PDF
  • iOS: Full support for camera scanner and PDF
  • Windows: PDF and external keyboard scanner only (no camera)
  • Web: Full support (camera requires HTTPS in production)
  • macOS: PDF and external keyboard scanner only (no camera)
  • Linux: PDF and external keyboard scanner only (no camera)
0
likes
110
points
48
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Reusable Flutter components for pharmacy applications. Provides cross-platform widgets for barcode scanning (camera and external USB readers) and comprehensive PDF generation with KPIs, tables, and charts.

Repository (GitHub)
View/report issues

Topics

#barcode #scanner #pdf #pharmacy #widget

License

MIT (license)

Dependencies

audioplayers, device_info_plus, flutter, flutter_web_plugins, gap, get, pdf, permission_handler, plugin_platform_interface, printing, shared_preferences, system_info_plus, web

More

Packages that depend on pharmago_packages

Packages that implement pharmago_packages