-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to encode CodaBar #17
Comments
example if i want to display something like this , it will not work as you dont expect for "data" to be "A23342453D" |
Actually, you can adapt your code to make it work: It's already possible to specify the Start and Stop values (A, B, C, or D) You can create a function to convert your string "A123456789D" to: BarcodeWidget(
data: '123456789',
width: 60,
height: 60,
barcode: Barcode.codabar(
start = BarcodeCodabarStartStop.A,
stop = BarcodeCodabarStartStop.D,
),
), |
Hi, in my case data is A123456789B
So i need to remove start and end chars, and to specify start and end
barcode Type. Can't this be done inside plugin?
Also in case iam doing a WA by removing start and end chars,
BarCodeWidget dose not display start and end, it only display number
…On Sat, Jul 25, 2020, 18:41 David PHAM-VAN ***@***.***> wrote:
Actually, you can adapt your code to make it work: It's already possible
to specify the Start and Stop values (A, B, C, or D)
You can create a function to convert your string "A123456789D" to:
BarcodeWidget(
data: '123456789',
width: 60,
height: 60,
barcode: Barcode.codabar(
start = BarcodeCodabarStartStop.A,
stop = BarcodeCodabarStartStop.D,
),
),
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6XVHJYZMKVMZ67XPX3R5L4KLANCNFSM4PGYBPZA>
.
|
I can add an option to display the start and stop chars. Would that work? |
Hi yes it will be helpful
…On Mon, Jul 27, 2020, 14:08 David PHAM-VAN ***@***.***> wrote:
I can add an option to display the start and stop chars. Would that work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6TXUMBDN3QWMDBMINDR5VN2XANCNFSM4PGYBPZA>
.
|
Actually, I'll add 2 switches:
For your use-case, you'll want both to be set to true. |
Yes excellent.
…On Mon, Jul 27, 2020, 17:09 David PHAM-VAN ***@***.***> wrote:
Actually, I'll add 2 switches:
- *printStartStop*: Outputs the Start and Stop characters as text
under the barcode
- *explicitStartStop*: The caller must explicitly specify the Start
and Stop characters as letters (ABCDETN*) in the data. In this case, start
and stop settings are ignored
For your use-case, you'll want both to be set to true.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6VUAZYXW2D6KKYIO7TR5WDC5ANCNFSM4PGYBPZA>
.
|
I just pushed the fix, can you test the master branch? |
hi when you planing to release new version ? |
There you go! |
hi,
my CodaBar is A123456789B this is rawValue , and when trying to build widget its failing ,
can you handle it to check if its already having start and end BarcodeCodabarStartStop.
The text was updated successfully, but these errors were encountered: