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
36719643
Commit
36719643
authored
Jun 16, 2020
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples update
parent
8210be1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
Podfile.lock
example/discover_printers/ios/Podfile.lock
+6
-0
main.dart
example/discover_printers/lib/main.dart
+6
-4
example.dart
example/example.dart
+4
-4
No files found.
example/discover_printers/ios/Podfile.lock
View file @
36719643
PODS:
PODS:
- charset_converter (0.0.1):
- Flutter
- Flutter (1.0.0)
- Flutter (1.0.0)
- path_provider (0.0.1):
- path_provider (0.0.1):
- Flutter
- Flutter
...
@@ -8,12 +10,15 @@ PODS:
...
@@ -8,12 +10,15 @@ PODS:
- Flutter
- Flutter
DEPENDENCIES:
DEPENDENCIES:
- charset_converter (from `.symlinks/plugins/charset_converter/ios`)
- Flutter (from `Flutter`)
- Flutter (from `Flutter`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
EXTERNAL SOURCES:
EXTERNAL SOURCES:
charset_converter:
:path: ".symlinks/plugins/charset_converter/ios"
Flutter:
Flutter:
:path: Flutter
:path: Flutter
path_provider:
path_provider:
...
@@ -24,6 +29,7 @@ EXTERNAL SOURCES:
...
@@ -24,6 +29,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/wifi/ios"
:path: ".symlinks/plugins/wifi/ios"
SPEC CHECKSUMS:
SPEC CHECKSUMS:
charset_converter: 215c7b04932ec2b9ba43be96a9bc34afed3e5322
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
...
...
example/discover_printers/lib/main.dart
View file @
36719643
...
@@ -93,14 +93,15 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -93,14 +93,15 @@ class _MyHomePageState extends State<MyHomePage> {
}
}
Future
<
Ticket
>
testTicket
(
PaperSize
paper
)
async
{
Future
<
Ticket
>
testTicket
(
PaperSize
paper
)
async
{
final
Ticket
ticket
=
Ticket
(
paper
);
final
profile
=
await
CapabilityProfile
.
load
();
final
Ticket
ticket
=
Ticket
(
paper
,
profile
);
ticket
.
text
(
ticket
.
text
(
'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ'
);
'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ'
);
ticket
.
text
(
'Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ'
,
ticket
.
text
(
'Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ'
,
styles:
PosStyles
(
codeTable:
PosCodeTable
.
westEur
));
styles:
PosStyles
(
codeTable:
'CP1252'
));
ticket
.
text
(
'Special 2: blåbærgrød'
,
ticket
.
text
(
'Special 2: blåbærgrød'
,
styles:
PosStyles
(
codeTable:
PosCodeTable
.
westEur
));
styles:
PosStyles
(
codeTable:
'CP1252'
));
ticket
.
text
(
'Bold text'
,
styles:
PosStyles
(
bold:
true
));
ticket
.
text
(
'Bold text'
,
styles:
PosStyles
(
bold:
true
));
ticket
.
text
(
'Reverse text'
,
styles:
PosStyles
(
reverse:
true
));
ticket
.
text
(
'Reverse text'
,
styles:
PosStyles
(
reverse:
true
));
...
@@ -162,7 +163,8 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -162,7 +163,8 @@ class _MyHomePageState extends State<MyHomePage> {
}
}
Future
<
Ticket
>
demoReceipt
(
PaperSize
paper
)
async
{
Future
<
Ticket
>
demoReceipt
(
PaperSize
paper
)
async
{
final
Ticket
ticket
=
Ticket
(
paper
);
final
profile
=
await
CapabilityProfile
.
load
();
final
Ticket
ticket
=
Ticket
(
paper
,
profile
);
// Print image
// Print image
final
ByteData
data
=
await
rootBundle
.
load
(
'assets/rabbit_black.jpg'
);
final
ByteData
data
=
await
rootBundle
.
load
(
'assets/rabbit_black.jpg'
);
...
...
example/example.dart
View file @
36719643
...
@@ -18,14 +18,14 @@ void main() async {
...
@@ -18,14 +18,14 @@ void main() async {
}
}
Future
<
Ticket
>
testTicket
()
async
{
Future
<
Ticket
>
testTicket
()
async
{
final
Ticket
ticket
=
Ticket
(
PaperSize
.
mm80
);
final
profile
=
await
CapabilityProfile
.
load
();
final
Ticket
ticket
=
Ticket
(
PaperSize
.
mm80
,
profile
);
ticket
.
text
(
ticket
.
text
(
'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ'
);
'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ'
);
ticket
.
text
(
'Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ'
,
ticket
.
text
(
'Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ'
,
styles:
PosStyles
(
codeTable:
PosCodeTable
.
westEur
));
styles:
PosStyles
(
codeTable:
'CP1252'
));
ticket
.
text
(
'Special 2: blåbærgrød'
,
ticket
.
text
(
'Special 2: blåbærgrød'
,
styles:
PosStyles
(
codeTable:
'CP1252'
));
styles:
PosStyles
(
codeTable:
PosCodeTable
.
westEur
));
ticket
.
text
(
'Bold text'
,
styles:
PosStyles
(
bold:
true
));
ticket
.
text
(
'Bold text'
,
styles:
PosStyles
(
bold:
true
));
ticket
.
text
(
'Reverse text'
,
styles:
PosStyles
(
reverse:
true
));
ticket
.
text
(
'Reverse text'
,
styles:
PosStyles
(
reverse:
true
));
...
...
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