Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
esc_pos_print_plus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
esc_pos_print_plus
Commits
c206c9ba
Commit
c206c9ba
authored
Jun 19, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send raw command(s)
parent
2f4e2787
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
README.md
README.md
+2
-2
printer.dart
lib/src/printer.dart
+5
-0
No files found.
README.md
View file @
c206c9ba
...
@@ -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
lib/src/printer.dart
View file @
c206c9ba
...
@@ -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
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment