Q

qr_code_scanner_aurora

A QR code scanner that works on Aurora OS

EN | RU

qr_code_scanner_aurora

README of the original plugin.

Description

A plugin for scanning QR codes in mobile applications on Flutter running on Aurora OS. Implements the functionality of the original qr_code_scanner package.

Usage example:

import 'package:qr_code_scanner_aurora/qr_code_scanner.dart';

// Widget QRView
QRView(
  ...
  onQRViewCreated: _onQRViewCreated,
  overlay: QrScannerOverlayShape(
    borderColor: Colors.purple,
    borderRadius: 10,
    borderLength: 30,
    borderWidth: 10,
    cutOutSize: scanArea,
  ),
  ...
),

// Get controller and listen QR after init plugin
void _onQRViewCreated(QRViewController controller) {
  if (!mounted) return;
  setState(() {
    _controller = controller;
  });
  controller.scannedDataStream.listen((scanData) async {
    if (!mounted) return;
    setState(() {
      _result = scanData;
      _states = States.barcode;
      _controller?.pauseCamera();
    });
  });
}

Contents

Installation and build

Add the plugin to your target application dependencies in the pubspec.yaml file:

dependencies:
  qr_code_scanner: ^1.0.1
  camera: ^0.11.2
  qr_code_scanner_aurora:
    git:
      url: https://hub.mos.ru/auroraos/flutter/flutter-community-plugins/qr_code_scanner_aurora.git

And update the dependencies:

flutter pub get

For Aurora OS specifically, use:

flutter-aurora pub get

Detailed description

This plugin can work with the [two-dimensional] type (https://www.iso.org/obp/ui/en/#iso:std:iso-iec:15415:ed-3:v1:en ) barcode QR code. Processing linear barcode is not supported.

Compatibility

The plugin works correctly starting from Aurora OS version 5.1.

Terms of Use and Participation

The project source code is provided under the license that allows its use in third-party applications. License provided with the qr_code_scanner package.

To participate in project development, please read the contributor agreement. If you plan to contribute your own source code to the project, you will need to accept the CLA agreement.

For information about contributors see AUTHORS.

Code of conduct is a current set of rules of the Open Mobile Platform which informs you how we expect the members of the community will interact while contributing and communicating.