bluetooth_print icon indicating copy to clipboard operation
bluetooth_print copied to clipboard

LineText params not working synchronously in Android and iOS

Open Musaddiq625 opened this issue 2 years ago • 13 comments

params:

size

  • Android :x:
  • iOS :heavy_check_mark:

weight

  • Android :heavy_check_mark:
  • iOS :x:

width

  • idk why the param is there, its not working

x,y axis

  • On same x-axis value in the list, It takes alignment value of last same value of x-axis param of the list

image

  • It doesnt have any option to set size of image

For now found these issues I need to remove size and weight param from both Android and iOS sides code to make it work synchronously.

Although the package is so good Ive used some other packages too, they dont have the support of iOS.

This package needs some update.

Musaddiq625 avatar Jan 11 '22 13:01 Musaddiq625

@xni06

Musaddiq625 avatar Jan 11 '22 14:01 Musaddiq625

Some of these issues may/should have been addressed in the PR's that have not yet been merged - see #77 #79 #80 #83.

You can also try my fork that is the source of those PR's:

Use something like this in your pubspec.yaml

  bluetooth_print:
    git:
      url: https://github.com/foresightmobile/bluetooth_print.git
      ref: '44e3c58'

xni06 avatar Jan 11 '22 14:01 xni06

Some of these issues may/should have been addressed in the PR's that have not yet been merged - see #77 #79 #80 #83.

You can also try my fork that is the source of those PR's:

Use something like this in your pubspec.yaml

  bluetooth_print:
    git:
      url: https://github.com/foresightmobile/bluetooth_print.git
      ref: '44e3c58'

Thanks for your fork! One question, it's possible update it with the last changes or we can use the last version "4.3.0" of the base bluetooth_print?

javieritis avatar Feb 03 '23 21:02 javieritis

@javieritis

Thanks for your fork! One question, it's possible update it with the last changes or we can use the last version "4.3.0" of the base bluetooth_print?

As those PR's have now been merged, you might as well use this repo instead of the fork. FYI, the fork has some additional commits but they are specific to a particular application so may not be of relevance to you. If I were you, I'd use https://github.com/thon-ju/bluetooth_print as the fork may disappear at some point.

xni06 avatar Feb 03 '23 21:02 xni06

Each day that I use this SDK, I'm finding more bugs 😔 . Thanks!

javieritis avatar Feb 03 '23 22:02 javieritis

Each day that I use this SDK, I'm finding more bugs 😔 . Thanks!

LOL! I feel your pain! I battled with this repo during the winter of 2021 and managed to implement the missing functionality that we required for the project that I was working on at the time. I'm glad that's over with but fully aware that there will be lots more holes left unfilled - good luck!

xni06 avatar Feb 03 '23 22:02 xni06

@xni06 I was using your changes with below, but now when i upgrade its not working. Its printing but next label print start exactly after last printed instead of next label. Could you please suggest.

bluetooth_print: git: url: https://github.com/foresightmobile/bluetooth_print.git ref: '44e3c58'

patelnirav48 avatar May 19 '23 05:05 patelnirav48

@xni06 Thank yoi for your reply, however if you atleast give some hints that solve my problem will really be great.

this was working fine earlier but now by upgrading its not working. Labels prints just after last label printer instead of next label. Appriciate if you can help me on this 🙏

patelnirav48 avatar May 19 '23 18:05 patelnirav48

@xni06 Thank yoi for your reply, however if you atleast give some hints that solve my problem will really be great.

this was working fine earlier but now by upgrading its not working. Labels prints just after last label printer instead of next label. Appriciate if you can help me on this 🙏

What did you upgrade?

xni06 avatar May 19 '23 19:05 xni06

@xni06 I did pub upgrade and my customised code in PrintContent.java, i did in past erased. Not sure what changes i had made that were works perfectly. I made some changes here to print image https://prnt.sc/30ffuZo4n17A.

And now im getting error like width and height must be > 0, however i resolved that error by passing width to linetext https://prnt.sc/B-XsogmQYwgt, but label always start after last print stopped. not from new label.

patelnirav48 avatar May 20 '23 04:05 patelnirav48

@xni06 I did pub upgrade and my customised code in PrintContent.java, i did in past erased. Not sure what changes i had made that were works perfectly. I made some changes here to print image https://prnt.sc/30ffuZo4n17A.

And now im getting error like width and height must be > 0, however i resolved that error by passing width to linetext https://prnt.sc/B-XsogmQYwgt, but label always start after last print stopped. not from new label.

I suggest trying previous versions of this repo until it works to track down the breaking change.

xni06 avatar May 20 '23 07:05 xni06

@xni06 Thanks, trying that since last week, but when i pick any ref commit its taking 4.3.0 of bluetooth print version. So not resolving yet.

Just a question, even i pass width 40mm and height 30mm bases on my label with gap 2, why its not goes to perfect postion of next label?

Thanks!

patelnirav48 avatar May 21 '23 06:05 patelnirav48