esc_pos_dart 1.1.2
esc_pos_dart: ^1.1.2 copied to clipboard
ESC/POS thermal WiFi printer support for Dart (non-Flutter dependent).
1.1.2 #
-
Generator
:- Fix
getCharsPerLine
to usestyles.fontType
. cut
: change parameter toextraLines = 4
.hr
: fix call togetMaxCharsPerLine
to usestyles.fontType ?? globalFont
.
- Fix
-
GeneratorEscPos
:- Consider character margin for max characters per line.
-
PrinterCommandHR
:- Fix JSON: add parameter
style
.
- Fix JSON: add parameter
-
PrinterCommandImage
:- Added
decodeImage
. - Fix JSON: add parameter
mimeType
.
- Added
1.1.1 #
Generator
:cut
: rollback default value forextraLines
to3
. Most printers need at least 3 extra lines.
1.1.0 #
-
Converted to Dart enums:
PaperSize
,PosTextSize
,PosBeepDuration
.
-
PosStyles
:align
nullable.fontType
nullable.
-
Generator
now is a base class.- Added fields
newLine
andnormalizeNewLines
. - Renamed
setGlobalFont
tosetFont
. - Added
styledBlock
. cut
: parameterextraLines = 2
.globalFont
now is a getter toglobalStyles.fontType ?? PosFontType.fontA
.- Implementation:
GeneratorEscPos
(ESC/POS)- Ensure that command styles won't affect global style.
- Added fields
-
New
Decoder
andDecoderEscPos
. -
PrinterCommandStyle
:- Field
align
now is aPosAlign
. - Field
fontType
now is aPosFontType
.
- Field
-
PrinterDocument
:print
:- Added parameters
reset
andendJob
. - Send a
reset
command before start printing. - Send a
endJob
command at the end of printing.
- Added parameters
addHR
: added parameterstyle
.
-
collection: ^1.19.0
-
lints: ^5.1.1
1.0.6 #
🚀 Refactor: Refactor NetworkPrinter
into GenericPrinter
class.
🚀 New BytesPrinter
.
-
sdk: ^3.6.0
-
resource_portable: ^3.1.2
-
test: ^1.25.15
-
coverage: ^1.11.1
-
intl: ^0.20.2
1.0.5 #
-
New
encodeChars
, to avoid encoding errors. -
Optimize imports.
-
image: ^3.3.0
-
resource_portable: ^3.1.0
-
collection: ^1.18.0
-
lints: ^4.0.0
-
test: ^1.25.11
-
dependency_validator: ^3.2.3
-
coverage: ^1.11.0
-
intl: ^0.20.1
1.0.4 #
- Fix
NetworkPrinter.disconnect
delay.
1.0.3 #
- Added support to optional command
GS r
(transmission of status). - Added
end job
command. - Added
NetworkPrinter.ensureConnected
.
1.0.2 #
- Added
PrinterCommand.toString
. - Fixed load of resource:
package:esc_pos_dart/resources/capabilities.json
. - collection: ^1.17.2
1.0.1 #
- New
PrinterDocument
.
1.0.0 #
- Dart pure version:
- Adjusted for Dart 3.
- Removed any Flutter dependency.
- Fixed lints.
- Added full printing example.
Original Work #
This package is based on the packages esc_pos_printer and esc_pos_utils by Andrey Ushakov (andrey-ushakov@GitHub). Both packages are Flutter dependent, which makes it impossible to use in Dart pure applications.