Commit 28381481 authored by Andrey's avatar Andrey

Cancel Kanji mode only if there is an active code table. Version update.

parent 3f4b0782
## [1.0.2]
* Added code page support
## [1.0.2]
* Send raw command(s)
* Turn 90° clockwise rotation mode on/off
......
......@@ -89,7 +89,12 @@ class Printer {
),
);
_socket.write(cKanjiCancel);
// Cancel Kanji mode if code table is selected
if (_codeTable != null || styles.codeTable != null) {
_socket.write(cKanjiCancel);
}
// Set local code table
if (styles.codeTable != null) {
_socket.add(
Uint8List.fromList(
......@@ -98,7 +103,6 @@ class Printer {
);
}
_socket.write(text);
// TOOD Kanji set
}
/// Sens raw command(s)
......
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.
version: 1.0.2
version: 1.1.0
author: Andrey Ushakov <flutter@tablemi.com>
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