Commit 55bcc079 authored by Andrey's avatar Andrey

Better alignment

parent a24da85c
## [1.1.2]
* Better alignment
## [1.1.1] ## [1.1.1]
* Fixed columns alignment bug * Fixed columns alignment bug
......
...@@ -79,7 +79,7 @@ class Printer { ...@@ -79,7 +79,7 @@ class Printer {
? cAlignLeft ? cAlignLeft
: (styles.align == PosTextAlign.center ? cAlignCenter : cAlignRight)); : (styles.align == PosTextAlign.center ? cAlignCenter : cAlignRight));
} else { } else {
final double toPos = _colIndToPosition(colInd + colWidth) - 11; final double toPos = _colIndToPosition(colInd + colWidth) - 5;
final double textLen = text.length * charLen; final double textLen = text.length * charLen;
if (styles.align == PosTextAlign.right) { if (styles.align == PosTextAlign.right) {
......
name: esc_pos_printer name: esc_pos_printer
description: The library allows to print receipts using a ESC/POS (usually thermal) network printer. It can be used in Flutter or Dart projects. In Flutter, both Android and iOS are supported. description: The library allows to print receipts using a ESC/POS (usually thermal) network printer. It can be used in Flutter or Dart projects. In Flutter, both Android and iOS are supported.
version: 1.1.1 version: 1.1.2
author: Andrey Ushakov <flutter@tablemi.com> author: Andrey Ushakov <flutter@tablemi.com>
homepage: https://github.com/andrey-ushakov/esc_pos_printer homepage: https://github.com/andrey-ushakov/esc_pos_printer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment