majascan 0.3.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 91

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.3.5

2. Install it #

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

$ flutter packages get  

###3. 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, 
    qRCornerColor: Colors.blue,
    qRScannerColor: Colors.deepPurple,
	  flashlightEnable: true
    );

Parameters #

title : Navigation bar title.

barColor : Navigation bar color.

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

qRCornerColor : Square color.

qRScannerColor : Scanner line color.

flashlightEnable : Flashlight button enable flag.

0.3.5 #

  • podspec add swift version.

0.3.4 #

  • iOS to swift 5.

0.3.3 #

  • Fix iOS load nib fail problem.

0.3.2 #

  • Add localization both iOS and android.

0.3.1 #

  • iOS support code-128 Barcode metadata type

0.3.0 #

  • Add Scanner line, square color parameter option.

0.2.0 #

  • Move iOS UI code to main thread.

0.1.9 #

  • Fix iOS orientation faceUp, faceDown preview layer don't update problem.

0.1.8 #

  • Fix cancel callback.

0.1.7 #

  • Fix iOS camera request auth crash problem.
  • Fix scanner animation stop when app enter background.

0.1.6 #

  • change Android request permission logic
  • convert to Kotlin

0.1.5 #

  • support AndroidX

0.1.4 #

  • Fix iOS loading assets from package problem.

0.1.3 #

  • Solved android dependency conflict.

0.1.1 #

  • Format main.dart

0.1.0 #

  • Add parameters for scan method to customize navigation bar style.

0.0.1 #

  • Describe initial release.

example/README.md

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.3.5

2. Install it #

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

$ flutter packages get  

###3. 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, 
    qRCornerColor: Colors.blue,
    qRScannerColor: Colors.deepPurple,
	  flashlightEnable: true
    );

Parameters #

title : Navigation bar title.

barColor : Navigation bar color.

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

qRCornerColor : Square color.

qRScannerColor : Scanner line color.

flashlightEnable : Flashlight button enable flag.

Use this package as a library

1. Depend on it

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


dependencies:
  majascan: ^0.3.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:majascan/majascan.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
83
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
91
Learn more about scoring.

We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.13.1+4
  • Flutter: 1.12.13+hotfix.2

Health issues and suggestions

Document public APIs. (-1 points)

13 out of 13 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/majascan.dart.

Run flutter format to format lib/majascan.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test