GithubHelp home page GithubHelp logo

ggichure / majascan_flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maja0270558/majascan_flutter

0.0 1.0 0.0 3.9 MB

License: MIT License

Kotlin 36.60% Java 3.84% Ruby 3.67% Swift 49.32% Objective-C 0.46% Dart 6.12%

majascan_flutter's Introduction

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

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.

majascan_flutter's People

Contributors

gomajidjangolin avatar gomajigeorgehsu avatar maja0270558 avatar xyz217522 avatar yaymalaga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.