tranphuc269 / qrcode_scanner_html5

Simple Barcode Scanner

Home Page:https://pub.dev/packages/simple_barcode_scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple_barcode_scanner

simple_barcode_scanner that let you scan barcode and qr code in mobile,web and windows.

Demo

Android IOS
drawing drawing
Window Web
drawing drawing

Features

  • Scan barcode in mobile devices using flutter_barcode_scanner
  • Scan barcode in web/window using html5-qrcode package

Installation and configuration

Getting started

simple_barcode_scanner: ^0.0.7

Import the library:

import 'package:simple_barcode_scanner/simple_barcode_scanner.dart';

Usage

   ElevatedButton(
              onPressed: () async {
                var res = await Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (context) => const SimpleBarcodeScannerPage(),
                    ));
                setState(() {
                  if (res is String) {
                    result = res;
                  }
                });
              },
              child: const Text('Open Scanner'),
            )

Todo

  • Flash and switch camera are only available in mobile devices
  • Enhancement

Note

Feel free to fork and send pull request. If you have any questions, feedback or ideas,You can create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.

You can also buy me a cup of coffee

About

Simple Barcode Scanner

https://pub.dev/packages/simple_barcode_scanner

License:MIT License


Languages

Language:C++ 37.6%Language:Dart 30.6%Language:CMake 20.8%Language:HTML 8.1%Language:C 1.6%Language:Swift 0.9%Language:Kotlin 0.3%Language:Objective-C 0.1%