thermal_unicode_print 0.0.1 copy "thermal_unicode_print: ^0.0.1" to clipboard
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 with ThermalCell(text, flex, align, bold), mirroring Expanded(flex: ...) inside a Row.
  • divider — a full-width horizontal rule.
  • Each render method has an ...Image() variant (raw image package img.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/Row widget mounted off-screen and captured via RenderRepaintBoundary, not a detached Canvas/ 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.
0
likes
150
points
89
downloads

Documentation

API reference

Publisher

verified publisherpritom.me

Weekly Downloads

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 at a time, so output size never grows with receipt length.

Repository (GitHub)
View/report issues

Topics

#printing #thermal-printer #bangla #unicode #escpos

License

MIT (license)

Dependencies

esc_pos_utils_plus, flutter, image

More

Packages that depend on thermal_unicode_print