Member-only story

QR Scanner/Generator in Flutter

Vijay R
2 min readOct 15, 2020

--

Scan or Generate custom QR Codes using Flutter app.

Video Tutorial

Dependencies

qr_flutter: ^3.2.0
barcode_scan: ^3.0.1
url_launcher: ^5.7.2

Implementation

  1. Scanning QR

For scanning a QR Code we need to add the following line in any onpressed event.,

var data = await BarcodeScanner.scan(options: options);

BarcodeScanner.scan() will return the raw data as a result of scan process and it is stored in the data variable.

2. Generate QR

The above QrImage() widget will generate a QR for the given data [“data” ]
the other parameters can be configured based on user choice.

--

--

Vijay R
Vijay R

Written by Vijay R

Hai👋 I’m a flutter developer experienced in designing and developing stunning mobile apps. Reach out for freelance projects: calico.takeoff_01@icloud.com

No responses yet