Skip to content

Commit

Permalink
Merge pull request #25 from andriyoganp/feat/add-param-paper-size
Browse files Browse the repository at this point in the history
feat: add parameter paper size
  • Loading branch information
andriyoganp authored Dec 13, 2021
2 parents 63342b5 + 3d18c6d commit 27d060a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/blue_print_pos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class BluePrintPos {
bool useCut = false,
bool useRaster = false,
double duration = 0,
PaperSize paperSize = PaperSize.mm58,
}) async {
final Uint8List bytes = await contentToImage(
content: receiptSectionText.content,
Expand All @@ -146,13 +147,15 @@ class BluePrintPos {
int feedCount = 0,
bool useCut = false,
bool useRaster = false,
PaperSize paperSize = PaperSize.mm58,
}) async {
final List<int> byteBuffer = await _getBytes(
bytes,
customWidth: width,
feedCount: feedCount,
useCut: useCut,
useRaster: useRaster,
paperSize: paperSize,
);
_printProcess(byteBuffer);
}
Expand Down

0 comments on commit 27d060a

Please sign in to comment.