flutter_barcode 0.0.2
flutter_barcode: ^0.0.2 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'))
    ])),
  ));
}
0
likes
100
pub points
26%
popularity

Publisher

110416.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