flutter_dothantech_lpapi_thermal_printer 1.0.0
flutter_dothantech_lpapi_thermal_printer: ^1.0.0 copied to clipboard
Flutter plugin for Dothantech LPAPI thermal label printers. Supports Bluetooth discovery, direct connection without pairing, and printing of text, barcodes, QR codes, and images.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - 2024-10-01 #
Added #
- Initial release of LPAPI Thermal Printer Plugin
- Bluetooth printer discovery without requiring manual pairing
- Direct connection to Dothantech thermal label printers
- Text printing with customizable label dimensions
- 1D barcode printing with optional text labels
- QR code (2D barcode) printing support
- Image printing from base64 encoded data
- Adjustable print density (darkness) settings
- Adjustable print speed settings
- Real-time printer connection status monitoring
- Support for both paired and unpaired printer discovery
- Comprehensive example application
- Full API documentation
Features #
searchPrinters()- Find already paired printersdiscoverPrinters()- Discover all nearby printers (paired and unpaired)connectPrinter(address)- Connect to specific printer by MAC addressconnectFirstPrinter()- Quick connect to first available printerdisconnectPrinter()- Disconnect from current printergetPrinterStatus()- Get current connection statusprintText()- Print plain textprint1DBarcode()- Print 1D barcodes with optional labelsprint2DBarcode()- Print QR codesprintImage()- Print images from base64 datasetPrintDensity()- Adjust print darkness (0-20)setPrintSpeed()- Adjust print speed (1-5)
Platform Support #
- Android: Full support with LPAPI SDK integration
- iOS: Not yet implemented
Dependencies #
- Flutter SDK >=3.3.0
- Dart SDK >=3.9.2
- Dothantech LPAPI SDK (included)