twitter_qr_scanner 1.0.4

Flutter Android iOS

Twitter qr code scan package for flutter.Qr code scanner and qr code generator plugin

QR Code Scanner #

QR Code scan page like Twitter.

Example #

Installation #

To use this plugin, add twitter_qr_scanner as a dependency in your pubspec.yaml file.

twitter_qr_scanner: any

Getting Started #

Check out the example app using twitter_qr_scanner.

Android Integration #

This plugin work only level greater then sdk version 21.

iOS Integration #

In order to use this plugin, add the following to your Info.plist file:

<key>io.flutter.embedded_views_preview</key>
<true/>

Flutter #

─░nit:

  GlobalKey qrKey = GlobalKey();
  QRViewController controller;

Widget:

QRView(
          key: qrKey,
          overlay: QrScannerOverlayShape(
              borderRadius: 16,
              borderColor: Colors.white,
              borderLength: 120,
              borderWidth: 10,
              cutOutSize: 250),
          onQRViewCreated: _onQRViewCreate,
          data: "QR TEXT",// Showing qr code data
        )

Scan:

  void _onQRViewCreate(QRViewController controller) {
    this.controller = controller;
    controller.scannedDataStream.listen((scanData) {
      setState(() {
        print("QRCode: $scanData");
      });
    });
  }

Dispose:

   @override
  void dispose() {
    controller?.dispose();
    super.dispose();
  }

License #

Apache

7
likes
70
pub points
77%
popularity

Twitter qr code scan package for flutter.Qr code scanner and qr code generator plugin

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

furkan.kayali@bil.omu.edu.tr

License

unknown (LICENSE)

Dependencies

carousel_slider, flare_flutter, flutter, qr_flutter

More

Packages that depend on twitter_qr_scanner