smart_printer_flutter 0.2.0
smart_printer_flutter: ^0.2.0 copied to clipboard
A Flutter plugin to print text, pdf, barcodes, and QR codes to thermal label and POS printers using TSPL, ZPL, ESC/POS.
Changelog #
All notable changes to this project will be documented in this file.
0.2.0 - 2025-10-03 #
✨ Features #
- Printer Connections
- Added support for multiple printer connection types:
connectBluetooth(String mac)connectEthernet(String ip)connectSerial(String port, String baudrate)connectUSB(String path)
- Added support for multiple printer connection types:
- Dart API
- Updated Dart interface, method channel, and example app to align with new connection methods.
- Testing
- Added TODOs for upcoming test implementations.
- Removed unused test code in
smart_printer_flutter_method_channel_test.dart.
♻️ Refactor #
- Core Manager
- Renamed
BleManager→PrinterManagerto reflect broader responsibilities. - Integrated Ethernet, USB, and Serial support into
PrinterManager.
- Renamed
- Plugin Integration
- Updated
SmartPrinterFlutterPluginto use the newPrinterManager.
- Updated
- Bluetooth
- Refactored Bluetooth device discovery to use modern Android APIs.
- Mocks
- Reorganized mock
SmartPrinterFlutterPlatformto group connection methods together.
- Reorganized mock
🧹 Cleanup #
- Removed commented-out code related to bitmap rendering and TSPL commands in
TSPLActivity.kt. - Removed unnecessary
Thread.sleep(1000)delay. - Deleted outdated TODO related to
isPrintedinprintPdfFromPath.
0.1.1 - 2025-09-26 #
✨ Features #
- Printer
- Add
getPrinterStatusmethod to fetch and interpret printer status codes.
- Add
- Android
- Implement native BLE logic to retrieve printer status.
♻️ Refactor #
- PDF Rendering & Printing
- Rework
renderAllPagesFromPdfto calculate bitmap dimensions based on printer DPI and aspect ratio, with a 4mm safety margin. - Update calls to
renderAllPagesFromPdfto pass theprinterobject.
- Rework
- TSPL Print Parameters
- Adjust speed from
5.0→3.0. - Adjust density from
10→1. - Change reference point from
(20, 0)→(0, 0).
- Adjust speed from
- Code Cleanup
- Remove redundant author KDoc from
PdfUtils.kt.
- Remove redundant author KDoc from
0.1.0 - 2025-09-15 #
✨ Features #
- Printer
- Add
getPrinterStatusmethod to fetch and interpret printer status codes.
- Add
- Android
- Implement native BLE logic to retrieve printer status.
Fixes #
- Printing
- Add error handling and logging in
TSPLActivity. - Prevent concurrent PDF print jobs in Dart.
- Add error handling and logging in
Chore #
- Minor cleanup and logging improvements.
0.0.6 #
- Added proper MIT
LICENSEfile (replacing placeholder template). - Added
NOTICEfile to clarify usage of trademarks (XPrinter, TSPL, ZPL, ESC/POS). - Compliance improvements for pub.dev publishing requirements.
0.0.5 #
- Update plugin version in pubspec.yaml
- Replace print with debugPrint in example and method channel
- Remove unused imports and test code
- Add initializeBle to MockSmartPrinterFlutterPlatform
- Update example pubspec.lock
0.0.4 #
- Fix bug in Android Bluetooth connection.
- Add support for printing QR codes and barcodes.
- Update dependencies (permission_handler 12.0.1).
0.0.3 #
- Update Change log.
0.0.2 #
- Update README.md with new features.
0.0.1 #
- Init Release.