thermal_unicode_print 0.0.1
thermal_unicode_print: ^0.0.1 copied to clipboard
Prints any Unicode script (Bangla, Arabic, Devanagari, ...) on ESC/POS thermal printers by rasterizing text with dart:ui instead of screenshotting a Flutter widget tree. Renders one bounded line/row a [...]
0.0.1 #
- Initial release.
ThermalUnicodeRenderer— renders Bangla, Arabic, Devanagari, or any other Unicode script ESC/POS printers can't natively handle, as bounded bitmaps sized to the printer's dot width.textLine— one (optionally word-wrapped) text block.row— one tabular row withThermalCell(text, flex, align, bold), mirroringExpanded(flex: ...)inside aRow.divider— a full-width horizontal rule.- Each render method has an
...Image()variant (rawimagepackageimg.Image) and a...Png()variant (PNG bytes) for on-screen preview or further composition, alongside the plain ESC/POS-bytes form. - Text is rendered through a real
Text/Rowwidget mounted off-screen and captured viaRenderRepaintBoundary, not a detachedCanvas/TextPainter— this avoids a class of Android bug (seen on some Impeller configurations) where manually-painted text renders blank while the identical text in a normal widget renders fine.