Commit c206c9ba authored by Andrey's avatar Andrey

send raw command(s)

parent 2f4e2787
...@@ -77,7 +77,7 @@ printer.printRow([ ...@@ -77,7 +77,7 @@ printer.printRow([
``` ```
## TODO ## TODO
* Add raw print function * ~~Add raw print function~~
* Print images * Print images
* Print barcodes * Print barcodes
* Print QR codes * Print QR codes
...@@ -85,4 +85,4 @@ printer.printRow([ ...@@ -85,4 +85,4 @@ printer.printRow([
* Flutter example: print a demo receipt * Flutter example: print a demo receipt
* ~~Flutter example: discover active Wi-Fi printers~~ * ~~Flutter example: discover active Wi-Fi printers~~
* USB, Bluetooth printers support * USB, Bluetooth printers support
* *Add encoding commands* * ~~Add encoding commands~~
\ No newline at end of file \ No newline at end of file
...@@ -90,6 +90,11 @@ class Printer { ...@@ -90,6 +90,11 @@ class Printer {
_socket.write(text); _socket.write(text);
} }
/// Sens raw command(s)
void sendRaw(List<int> cmd) {
_socket.add(Uint8List.fromList(List.from(cmd)));
}
/// Prints one line of styled text /// Prints one line of styled text
void println( void println(
String text, { String text, {
......
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