flutter_barcode 0.0.2+1 icon indicating copy to clipboard operation
flutter_barcode: ^0.0.2+1 copied to clipboard

A custom widget which generates and displays a barcode.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_barcode/barcode/model/barcode.dart';
import 'package:flutter_barcode/barcode/presenter/barcode_paint.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
        body: Column(children: [
      BarcodePaint(
        Barcode.jan('4011200296908'),
        // or Barcode.nw7("<...>")
        size: const Size(100, 50),
      ),
      Container(
          alignment: Alignment.center,
          padding: const EdgeInsets.all(8),
          child: const Text('4011200296908'))
    ])),
  ));
}
2
likes
100
pub points
59%
popularity

Publisher

verified publisher icon110416.dev

A custom widget which generates and displays a barcode.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_barcode