pharmago_packages 1.1.2
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 onDetectionscallback exposing eachQrDetection(barcode,value,corners,bounds,center) in widget coordinates
- Detects multiple codes simultaneously, keeping each one highlighted (configurable via
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_scannerpublic API (BarcodeFormat,BarcodeCapture,MobileScannerController, etc.) throughpharmago_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.11 #
Features #
- Added
BarcodeScannerControllerfor 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
BarcodeScannerStateenum - Reset functionality for camera reinitialization
Improvements #
- Enhanced
BarcodeScannerWidgetwith 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
BarcodeScannerActionButtonfor customizable action buttons on scanner - New action button system with flexible positioning and styling
- Improved scanner widget architecture with action buttons support
Improvements #
- Enhanced
BarcodeScannerWidgetwithenableActionButtonsandactionButtonsparameters - Deprecated
BarcodeScannerWithSearchin 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
BarcodeScannerWidgetfor better maintainability - Enhanced
BarcodeScannerSettingswith additional options - Improved scanner overlay configuration
- Added new translation keys for scanner UI
1.0.7 #
1.0.6 #
Features #
- Major improvements to barcode scanner module UI and configurations
- Enhanced
BarcodeScannerWithSearchcomponent - New side action configurations
Improvements #
- Refactored
BarcodeScannerConfigwith expanded options - Improved
BarcodeScannerWidgetwith better UI handling - Enhanced side action widget with new features
- Better example app structure with improved navigation
1.0.4 #
1.0.3 #
Features #
- Added
PdfSectionTitleConfigfor customizable section titles in PDF - Added
PdfCustomWidgetfor custom widget support in PDF builder - Enhanced PDF builder with section title support
Improvements #
- Improved
PdfKpiSectionwith title configuration - Enhanced
PdfTableSectionwith title support - Enhanced
PdfChartSectionwith title configuration - Enhanced
PdfFormSectionwith title support - Updated PDF documentation with new features
1.0.2 #
Features #
- Added
BarcodeScannerWithSearchwidget for scanner with integrated search field - Added
BarcodeSideActionConfigandBarcodeSideActionWidgetfor side actions - Added
BarcodeScannerSettingswidget for scanner configuration UI - Added internationalization system (
PharmagoPackageTranslations) - Added
PdfIconHelperfor icon support in PDF - Added
PdfKpiIconStylemodel for KPI icons styling
Improvements #
- Enhanced
BarcodeScannerConfigwith expanded configuration options - Improved
BarcodeScannerOverlaywith better customization - Refactored
BarcodeScannerWidgetwith advanced features - Enhanced
PdfKpiSectionwith icon support - Improved
PdfTableSectionwith additional options - Enhanced
PdfFormSectionwith better styling - Added comprehensive PDF documentation
1.0.1 #
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)