barcode_widget 1.5.0

Flutter Android iOS web

Barcode generation widget for Flutter with support for standard barcodes.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:barcode_widget/barcode_widget.dart';

// ignore_for_file: public_member_api_docs

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Barcode demo'),
      ),
      body: Center(
        child: BarcodeWidget(
          barcode: Barcode.aztec(), // Barcode type and settings
          data: 'https://pub.dev/packages/barcode_widget', // Content
          width: 200,
          height: 200,
        ),
      ),
    );
  }
}
16
likes
110
pub points
92%
popularity

Publisher

nfet.net

Barcode generation widget for Flutter with support for standard barcodes.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

barcode, flutter, meta

More

Packages that depend on barcode_widget