textSpacing property

double textSpacing
final

Specifies the space between the text and the barcode.

Based on space, the barcode height is to be reduced and the space unit is to be determined by logical pixels.

Defaults to 2 logical pixels.

Widget build(BuildContext context) {
   return Container(
       child: SfBarcodeGenerator(value:'123456',
       textSpacing: 10));
}
```dart

Implementation

final double textSpacing;