Skip to content
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

PosColumn alignment inside row not working #118

Open
noebt opened this issue May 12, 2022 · 0 comments
Open

PosColumn alignment inside row not working #118

noebt opened this issue May 12, 2022 · 0 comments

Comments

@noebt
Copy link

noebt commented May 12, 2022

Hi, I have a row with three columns. I want to align one to the right and I use the example. but it doesn't work, it just puts all the columns together with no alignment.
Anyone know why?
Thanks.

bytes += ticket.row([
        PosColumn(text: element.cantidad.toString() + ' x ' + element.nombre!,width: 4, styles: PosStyles(height: PosTextSize.size1, width: PosTextSize.size1, codeTable: 'CP1252')),
        PosColumn(text: " " * espacios, width: 6, styles: PosStyles(height: PosTextSize.size1, width: PosTextSize.size1)),
        PosColumn(width: 2, textEncoded: Uint8List.fromList(element.precioArticulo.toString().codeUnits + [128]), styles: PosStyles(codeTable: 'CP1252', align: PosAlign.right)),
      ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant