kakzaki / blue_thermal_printer

Working with thermal printer via bluetooth (Flutter)
MIT License
164 stars 205 forks source link

Added Enums for simplify the use of Size and Alignment #211

Open Pedro-Ivo-Neves opened 1 month ago

Pedro-Ivo-Neves commented 1 month ago

Added Enums

I added enums to simplify the use of Alignment and Size on the package.

Before

 bluetooth.printCustom("HEADER", Size.boldMedium.val, Align.center.val);

Now

  bluetooth.printCustom("HEADER", Size.boldMedium, Align.center);