- Null-Safety
- Update libraries
- Added new printer support: HPRT TP806L
Ticket
class replaced byGenerator
.- New code generation concept: Unlike
Ticket
, each method returns corresponding command's byte code
- Xprinter profile: added cp1258 (vietnamese)
- Replace some non-ascii characters
- Printing a long text col splits the data to the next row (case when col contains chinese characters taking 2 bytes)
- Bug fix: printing a long text col splits the data to the next row
- Ticket class : added named parameter
spaceBetweenRows
- Updated example and README (using CapabilityProfiles)
- Setting code page before printing to support some printer models
- Set Kanji mode 0ff before setting a code page to support some printer models
- Update printer profiles
- Using flutter assets to load capabilities.json
- PosCodeTable replaced by CapabilitiesProfile
- Fixed merged text on some printers when using chinese + latin together in one string
- Print QR Codes using native function
- Added
Ticket.setGlobalFont
method Ticket.codeTable
renamed toTicket.printCodeTable
- Added
maxCharsPerLine
custom config + default values depending on current font and ticket size - Code refactoring
- Added hr method
- Updated commands (using hex codes)
- setStyles bug fix
- Slow printing issue on some printer models fixed
PosColumn
can contain encoded text (textEncoded
field)- Bug fix: Columns with
PosTextSize
>size1
- Added Barcode Code128
- Added new code pages
imageRaster
bug fixed- Ticket bytecode optimization: do not generate align left command (it's a default value)
- Added new image print function:
GS ( L
- Added Open cash drawer command
- Image alignment (left, center, right). Align center by default.
- Barcode alignment (left, center, right). Align center by default.
PosTextAlign
renamed toPosAlign
Ticket._text
function takes an Uint8List of bytes instead of a StringTicket._text
function refactored: removed styling commands when it's unnecessary which makes ticket's final byte code much shorterPosCodeTable
: private constructor replaced by public one to allow passing custom code table codePosCodeTable
: added new predefined code tables- Added
Ticket.textEncoded
function taking Uint8List textBytes (encoded text) to support different languages
- Initial release