cs10_z100_pos_printer 1.1.0
cs10_z100_pos_printer: ^1.1.0 copied to clipboard
A Flutter plugin for printing on CS10-Z100 POS terminals.
Changelog #
1.1.0 Enhanced Device Compatibility Check #
- Improved Compatibility Check: The plugin now includes a more robust and precise device compatibility check.
- Strictly enforces Android OS compatibility between Android 5.1 (API 22) and Android 7.1.1 (API 25) inclusive.
- This ensures the plugin runs only on supported devices and OS versions, preventing crashes and unexpected behavior.
1.0.1 Updated README #
- Added an image of the CS10-Z100 POS terminal to the README.md for better device identification.
1.0.0 Major Update: Refactored Printing Methods and Added QR Code Support #
- Breaking Change: The
addString()method has been completely refactored and is not backward-compatible.- This change was made to improve code organization and provide better encapsulation of text formatting options.
- Migration Guide:
- You must update your code to use the
addToString()method and thePrinterTextclass to print text.
- You must update your code to use the
- New Feature: Added
addQrCode()method to print QR codes.- This method takes a
PrinterQrCodeobject as a parameter.
- This method takes a
- New Feature: Introduced
addToQueue()method for a more generic printing queue.- This method accepts a
Printableobject (eitherPrinterTextorPrinterQrCode) and automatically calls the appropriate printing method.
- This method accepts a
- New Classes: The following classes have been added to support the new features and refactoring:
Printable(abstract class): Base class for printable objects.PrinterText: Class to represent text to be printed, including formatting options.PrinterQrCode: Class to represent QR codes to be printed.PrinterStringSize(enum): Enum for text size options.PrinterStringZoom(enum): Enum for text zoom options.
- Important: Device Compatibility Check Added
- The plugin now explicitly checks for device compatibility with the CS10-Z100 POS terminal.
- Plugin methods
initPrinter()will returnfalseand show the message error on the console if the device is not supported. - This change ensures that the plugin is used correctly and prevents unexpected crashes or behavior on unsupported devices.
0.0.1 Initial Release #
- Initial release of the CS10-Z100 POS Printer plugin.
- Provides the following functionality:
- Printer initialization (
printInit()). - Adding a string to the print queue with formatting options (
addString()).- Supports text alignment (
align). - Supports font width (
width). - Supports font height (
height).
- Supports text alignment (
- Starting the printing process (
printStart()). - Closing the printer connection and clearing the queue (
printClose()). - Checking the printer's status (
printCheckStatus()).
- Printer initialization (