barcode_image 2.0.3 copy "barcode_image: ^2.0.3" to clipboard
barcode_image: ^2.0.3 copied to clipboard

Barcode generation library for Dart that can generate barcodes using the image library.

example/main.dart

// ignore_for_file: always_specify_types

import 'dart:io';

import 'package:barcode_image/barcode_image.dart';
import 'package:image/image.dart';

void main() {
  // Create an image
  final image = Image(width: 600, height: 350);

  // Fill it with a solid color (white)
  fill(image, color: ColorRgb8(255, 255, 255));

  // Draw the barcode
  drawBarcode(image, Barcode.code128(), 'Test', font: arial24);

  // Save the image
  File('barcode.png').writeAsBytesSync(encodePng(image));
}
67
likes
160
points
6.33k
downloads

Publisher

verified publishernfet.net

Weekly Downloads

Barcode generation library for Dart that can generate barcodes using the image library.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

args, barcode, image, meta

More

Packages that depend on barcode_image