qr_flutter 1.0.0

  • README.md
  • Example
  • Installing
  • Versions
  • new71

QR - Flutter is a QR code generation and rendering library for Flutter.


  • Built on QR - Dart
  • Supports QR code versions 1 - 40
  • Error correction / redundancy
  • Configurable output size, padding, background and foreground colors
  • No internet connection required


You can install the package by adding the following lines to your pubspec.yaml:

  qr_flutter: "^1.0.0"

After adding the dependency to your pubspec.yaml you can run: pub get or flutter packages get if you're using Flutter.

Getting started

To start, import the dependency in your code:

import 'package:qr_flutter/qr_flutter.dart';

Next, to render a basic QR code you can do as such:

new QrImage(
  data: "1234567890",
  size: 200.0,

Depending on your data requirements you may want to tweak the QR code output:

versionintA value between 1 and 40. See http://www.qrcode.com/en/about/version.html for details.
errorCorrectionLevelintA value defined on QrErrorCorrectLevel. e.g.: QrErrorCorrectLevel.L.
sizedoubleThe (square) size of the image
paddingEdgeInsetsPadding surrounding the QR code data
backgroundColorColorThe background color (default is none)
foregroundColorColorThe foreground color (default is black)


See the example directory for a basic working example.



  • Initial release


import 'package:flutter/material.dart';

import 'screens/main.screen.dart';

void main() => runApp(new App());

class App extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'QR code demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      home: new MainScreen(),

1. Depend on it

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

  qr_flutter: "^1.0.0"

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:qr_flutter/qr_flutter.dart';
Version Uploaded Documentation Archive
1.0.0 Mar 4, 2018 Go to the documentation of qr_flutter 1.0.0 Download qr_flutter 1.0.0 archive


We analyzed this package on Mar 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.31.0
  • pana: 0.10.3
  • Flutter: 0.1.7


Describes how popular the package is relative to other packages. [more]
46 / 100
Code health derived from static analysis. [more]
96 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Fix issues reported by dartanalyzer or dartfmt.

    dartanalyzer or dartfmt reported 3 hints.

    Run dartfmt to format lib/qr_flutter.dart.

    Run dartfmt to format lib/src/qr_image.dart.

    Similar analysis of the following files failed:

    • lib/src/qr_painter.dart (hint)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
flutter 0.0.0
qr ^0.1.0+1 0.1.0+2
Transitive dependencies
async 2.0.6
charcode 1.1.1
collection 1.14.5
http 0.11.3+16
http_parser 3.1.1
meta 1.1.2
path 1.5.1
sky_engine 0.0.99
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
vector_math 2.0.5