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
dependencies: qr_flutter: ^1.1.1
After adding the dependency to your
pubspec.yaml you can run:
pub get or
flutter packages get if you're using Flutter.
To start, import the dependency in your code:
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:
|int||A value between 1 and 40. See http://www.qrcode.com/en/about/version.html for details.|
|int||A value defined on |
|double||The (square) size of the image|
|EdgeInsets||Padding surrounding the QR code data|
|Color||The background color (default is none)|
|Color||The foreground color (default is black)|
example directory for a basic working example.