qrscan_plus 1.0.5 copy "qrscan_plus: ^1.0.5" to clipboard
qrscan_plus: ^1.0.5 copied to clipboard

A Plug-in for dart, which help you scanning and Generating barcode and qrcode with Android and IOS Device.

Language: English

QR Code Scanner #

License Pub

A Flutter plugin ๐Ÿ›  to scanning. Ready for Android & IOS๐Ÿš€

This project is a fork of the original qrscan plugin, which I have updated to be compatible with the latest Flutter and Android versions. Thanks to the original author for their amazing work!

Reporting Issues #

If you encounter any issues or have suggestions for improvements, please report them by opening a new issue on GitHub:

๐Ÿ”— https://github.com/itxmubi/qrscan_plus/issues

Your feedback helps make this project better!

๐Ÿ“ข Note for Android Developers #

To use this plugin, you must add the following Maven repository in your projectโ€™s android/build.gradle (or build.gradle.kts):

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } // ๐Ÿ‘ˆ Add this line
    }
}

Qrscan Plus

Permission๏ผš #

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

๐Ÿ“ข Note for iOS Developers #

Important: You must add camera and photo library permissions to your iOS project to use this package.

In your Info.plist, add the following entries:

<key>NSCameraUsageDescription</key>
<string>This app requires camera access to scan QR codes.</string>

<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires photo library access to select images for scanning.</string>

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  qrscan_plus: any

Scan Usage example #

import 'package:qrscan_plus/qrscan_plus.dart' as scanner;

String cameraScanResult = await scanner.scan();

Supported #

  • โœ… Scan BR-CODE
  • โœ… Scan QR-CODE
  • โœ… Control the flash while scanning
  • โœ… Apply for camera privileges
  • โœ… Scanning BR-CODE or QR-CODE in albums
  • โœ… Parse to code string with uint8list
  • โœ… Scanning the image of the specified path
  • โœ… Display the switch button of the flashlight according to the light intensity
  • โœ… Generate QR-CODE

Features #

  • Generate BR-CODE

Select Bar-Code or QR-Code photos for analysis and Generating QR-Code #

import 'package:qrscan_plus/qrscan_plus.dart' as scanner;

// Select Bar-Code or QR-Code photos for analysis
String photoScanResult = await scanner.scanPhoto();

// Generating QR-Code
Uint8List result = await scanner.generateBarCode('https://github.com/itxmubi/qrscan_plus');

// Scanning the image of the specified path
String barcode = await scanner.scanPath(path);

// Parse to code string with uint8list
File file = await ImagePicker.pickImage(source: ImageSource.camera);
Uint8List bytes = file.readAsBytesSync();
String barcode = await scanner.scanBytes(uint8list);

Contribute #

We would โค๏ธ to see your contribution!

License #

Distributed under the MIT license. See LICENSE for more information.

About #

Real Thanks to Shusheng.

Updated and Maintained By Mubashir Nawaz

Thanks #

2
likes
160
points
332
downloads

Publisher

unverified uploader

Weekly Downloads

A Plug-in for dart, which help you scanning and Generating barcode and qrcode with Android and IOS Device.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on qrscan_plus