-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hi, thanks for developed this cool library!
I got an issue when I use generator.row
and generator.textLeftRight
to print a row, the leftmost column is not left-aligned properly.
Here is my code:
bytes += _generator.hr(ch: '=');
final receiptNumber = label.receiptNumber;
final shippingTotalWeight = '${label.shippingTotalWeight} kg';
final shippingCost = Formatter.currency(label.shippingCost as int);
bytes += _generator.row([
PosColumn(
text: 'Pengiriman',
width: 6,
),
PosColumn(
text: receiptNumber,
width: 6,
styles: const PosStyles(align: PosAlign.right),
),
]);
bytes += _generator.textLeftRight('Berat', shippingTotalWeight);
bytes += _generator.textLeftRight('Ongkir', shippingCost);
bytes += _generator.hr();bytes += _generator.hr(ch: '=');
Here is my Generator
configuration:
@preResolve
Future<Generator> get generator async => Generator(PaperSize.mm80, await CapabilityProfile.load());
and I used CP1252
global code table.
Is there any way to fix this? Thank you!
Metadata
Metadata
Assignees
Labels
No labels