BarcodeWidget.fromBytes constructor
BarcodeWidget.fromBytes({
- required Uint8List data,
- required Barcode barcode,
- PdfColor color = PdfColors.black,
- PdfColor? backgroundColor,
- BoxDecoration? decoration,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? width,
- double? height,
- bool drawText = true,
- TextStyle? textStyle,
- double textPadding = 0,
Draw a barcode using Uint8List data
Implementation
BarcodeWidget.fromBytes({
required Uint8List data,
required this.barcode,
this.color = PdfColors.black,
this.backgroundColor,
this.decoration,
this.margin,
this.padding,
this.width,
this.height,
this.drawText = true,
this.textStyle,
this.textPadding = 0,
}) : dataBytes = data,
dataString = null;