barcode_generator 0.2.7 copy "barcode_generator: ^0.2.7" to clipboard
barcode_generator: ^0.2.7 copied to clipboard

A flutter package for barcode generator base on ZXing support multiple fortmats with PlatformView

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Container(
              width: 500,
              height: 500,
              color: Colors.black26,
              child: BarcodeGenerator(
                backgroundColor: Colors.red,
                fromString: "9999999a",
                codeType: BarCodeType.kBarcodeFormatCode128,
              )),
        ),
      ),
    );
  }
}
8
likes
35
pub points
0%
popularity

Publisher

unverified uploader

A flutter package for barcode generator base on ZXing support multiple fortmats with PlatformView

Repository (GitHub)
View/report issues

License

Apache-2.0, BSD-3-Clause-No-Nuclear-Warranty (LICENSE)

Dependencies

flutter

More

Packages that depend on barcode_generator