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
55bcc079
Commit
55bcc079
authored
Jul 18, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better alignment
parent
a24da85c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.md
CHANGELOG.md
+3
-0
printer.dart
lib/src/printer.dart
+1
-1
pubspec.yaml
pubspec.yaml
+1
-1
No files found.
CHANGELOG.md
View file @
55bcc079
## [1.1.2]
*
Better alignment
## [1.1.1]
*
Fixed columns alignment bug
...
...
lib/src/printer.dart
View file @
55bcc079
...
...
@@ -79,7 +79,7 @@ class Printer {
?
cAlignLeft
:
(
styles
.
align
==
PosTextAlign
.
center
?
cAlignCenter
:
cAlignRight
));
}
else
{
final
double
toPos
=
_colIndToPosition
(
colInd
+
colWidth
)
-
11
;
final
double
toPos
=
_colIndToPosition
(
colInd
+
colWidth
)
-
5
;
final
double
textLen
=
text
.
length
*
charLen
;
if
(
styles
.
align
==
PosTextAlign
.
right
)
{
...
...
pubspec.yaml
View file @
55bcc079
name
:
esc_pos_printer
description
:
The library allows to print receipts using a ESC/POS (usually thermal) network printer. It can be used in Flutter or Dart projects. In Flutter, both Android and iOS are supported.
version
:
1.1.
1
version
:
1.1.
2
author
:
Andrey Ushakov <flutter@tablemi.com>
homepage
:
https://github.com/andrey-ushakov/esc_pos_printer
...
...
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