Commit c206c9ba authored by Andrey's avatar Andrey

send raw command(s)

parent 2f4e2787
......@@ -77,7 +77,7 @@ printer.printRow([
```
## TODO
* Add raw print function
* ~~Add raw print function~~
* Print images
* Print barcodes
* Print QR codes
......@@ -85,4 +85,4 @@ printer.printRow([
* Flutter example: print a demo receipt
* ~~Flutter example: discover active Wi-Fi printers~~
* USB, Bluetooth printers support
* *Add encoding commands*
\ No newline at end of file
* ~~Add encoding commands~~
\ No newline at end of file
......@@ -90,6 +90,11 @@ class Printer {
_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
void println(
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