majascan 0.1.3 copy "majascan: ^0.1.3" to clipboard
majascan: ^0.1.3 copied to clipboard

outdated

A qr code scanner flutter plugin project. Using method channel open native camera page scan QR code. Support iOS, Android.

majascan #

pub link
A QR code scanner flutter plugin project.
Using method channel open native camera page scan qr code.

## Installation

1. Depend on it #

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

dependencies:  
  majascan: ^0.1.0  

2. Install it #

You can install packages from the command line:
with Flutter:

$ flutter packages get  
  1. Import it
    Now in your Dart code, you can use:
import 'package:majascan/majascan.dart';  

iOS #

Add the the camera usage description to your Info.plist

<key>NSCameraUsageDescription</key>  
<string>Camera permission is required for qrcode scanning.</string>  

Android #

For Android, you must do the following before you can use the plugin:
* Add the QrCodeScannerActivity to your AndroidManifest.xml
<activity android:name="com.djgeo.majascan.g_scanner.QrCodeScannerActivity"/>

Example #

String qrResult = await MajaScan.startScan(
   title: “QRcode scanner”, 
barColor: Colors.red, 
titleColor: Colors.green, 
flashlightEnable: true
   );

Parameters #

title : Navigation bar title.

barColor : Navigation bar color.

titleColor : Navigation bar title color (include back icon).

flashlightEnable : flashlight button enable flag.

61
likes
0
pub points
85%
popularity

Publisher

unverified uploader

A qr code scanner flutter plugin project. Using method channel open native camera page scan QR code. Support iOS, Android.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on majascan