textAlign property
How the text should be aligned horizontally in barcode.
The barcode textAlign property accepts only three enum values as TextAlign.center, TextAlign.left and TextAlign.right.
- TextAlign.center - Align the text in the center of the barcode.
- TextAlign.left - Align the text on the left edge of the barcode.
- TextAlign.right - Align the text on the right edge of the barcode.
Defaults to TextAlign.center.
Also refer TextAlign.
Widget build(BuildContext context) {
return Container(
child: SfBarcodeGenerator(value:'123456',
textAlign: TextAlign.right));
}
```dart
Implementation
final TextAlign textAlign;