qr_bar_code 1.3.0 copy "qr_bar_code: ^1.3.0" to clipboard
qr_bar_code: ^1.3.0 copied to clipboard

Simple and fast QR code and Barcode generator and scanner with smartphones.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:qr_bar_code/code/code.dart';
import 'package:qr_bar_code/qr/qr.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Home(),
    );
  }
}

class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
          child: Padding(
        padding: const EdgeInsets.all(20),
        child: Column(
          children: [
            QRCode(data: "https://datadirr.com"),
            Code(data: "https://datadirr.com", codeType: CodeType.qrCode()),
          ],
        ),
      )),
    );
  }
}
20
likes
140
points
9.66k
downloads

Publisher

verified publisherdatadirr.com

Weekly Downloads

Simple and fast QR code and Barcode generator and scanner with smartphones.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on qr_bar_code