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
eed97259
Commit
eed97259
authored
Jun 12, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update example : added row.
parent
3e88f053
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
example.dart
example/example.dart
+12
-4
No files found.
example/example.dart
View file @
eed97259
...
@@ -3,19 +3,27 @@ import 'package:esc_pos_printer/src/printer.dart';
...
@@ -3,19 +3,27 @@ import 'package:esc_pos_printer/src/printer.dart';
void
main
(
)
{
void
main
(
)
{
Printer
.
connect
(
'192.168.0.123'
).
then
((
printer
)
{
Printer
.
connect
(
'192.168.0.123'
).
then
((
printer
)
{
printer
.
reset
();
printer
.
println
(
PosString
(
'Normal text'
));
printer
.
println
(
PosString
(
'Normal text'
));
printer
.
println
(
PosString
(
'Bold text'
,
bold:
true
));
printer
.
println
(
PosString
(
'Bold text'
,
bold:
true
));
printer
.
println
(
PosString
(
'Reverse text'
,
reverse:
true
));
printer
.
println
(
PosString
(
'Reverse text'
,
reverse:
true
));
printer
.
println
(
PosString
(
'Underlined text'
,
underline:
true
));
printer
.
println
(
PosString
(
'Underlined text'
,
underline:
true
),
linesAfter:
1
);
printer
.
println
(
PosString
(
'Align left'
,
align:
PosTextAlign
.
left
));
printer
.
println
(
PosString
(
'Align left'
,
align:
PosTextAlign
.
left
));
printer
.
println
(
PosString
(
'Align center'
,
align:
PosTextAlign
.
center
));
printer
.
println
(
PosString
(
'Align center'
,
align:
PosTextAlign
.
center
));
printer
.
println
(
PosString
(
'Align right'
,
align:
PosTextAlign
.
right
));
printer
.
println
(
PosString
(
'Align right'
,
align:
PosTextAlign
.
right
),
linesAfter:
1
);
printer
.
printRow
(
[
3
,
6
,
3
],
[
PosString
(
'col3'
,
align:
PosTextAlign
.
center
,
underline:
true
),
PosString
(
'col6'
,
align:
PosTextAlign
.
center
,
underline:
true
),
PosString
(
'col3'
,
align:
PosTextAlign
.
center
,
underline:
true
)
],
);
printer
.
println
(
PosString
(
'Text size 200%'
,
printer
.
println
(
PosString
(
'Text size 200%'
,
height:
PosTextSize
.
size2
,
width:
PosTextSize
.
size2
));
height:
PosTextSize
.
size2
,
width:
PosTextSize
.
size2
));
printer
.
cut
();
printer
.
cut
();
printer
.
disconnect
();
printer
.
disconnect
();
});
});
}
}
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