ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
21 stars 36 forks source link

add line feed & disable scroll on receipt #7

Closed YouSour closed 1 year ago

YouSour commented 1 year ago

hi, first of all i really like this package easy to use , i want to add line feed (space) when printer printed and is it possible or not if i want to disable scroll on receipt. thank in advance

ekasetiawans commented 1 year ago

for Receipt widget, currently you can add an additional small period text at the bottom to add spaces. But, you can always send the bytes in ESC POS format to the printer if you implements your custom receipt widget. I'll consider to add parameters to the receipt widget print method in the future.

YouSour commented 1 year ago

@ekasetiawans thank you for reply this tip, i 'll wait for this for next update, awesome package 👍

ekasetiawans commented 1 year ago

hi @YouSour I have updated the package, now you can use

ReceiptController.print(
...
linesAfter: 2 // will print 2 feeds at the bottom
)

thank you

YouSour commented 1 year ago

@ekasetiawans thank you so much for keep update this awesome package and i hope you can improve document too, i will keep recommend everyone using this package, by the way on latest version how can i set paper size ?

ekasetiawans commented 1 year ago

@YouSour you can change ReceiptController.paperSize, see the example project

YouSour commented 1 year ago

@ekasetiawans thank you , found it 😄