flutter_barcode 0.0.2+1 copy "flutter_barcode: ^0.0.2+1" to clipboard
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'))
    ])),
  ));
}
3
likes
130
pub points
65%
popularity

Publisher

verified publisher110416.dev

A custom widget which generates and displays a barcode.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_barcode