From a37e1c257eb15f19597ce3c08f8fd58bd176b303 Mon Sep 17 00:00:00 2001 From: Achim Friedland Date: Mon, 20 Jun 2022 21:11:16 +0200 Subject: [PATCH 1/3] Fix GitHub link for pubspec.yaml --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c8f84b..d4be1d5 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ dependencies: dependencies: qr_flutter: git: - url: git://github.com/lukef/qr.flutter.git + url: git@github.com:theyakka/qr.flutter.git ``` Keep in mind the `master` branch could be unstable. From c3064cf8a2d44722fa975207ed088b04a07673b4 Mon Sep 17 00:00:00 2001 From: Achim Friedland Date: Mon, 20 Jun 2022 21:22:23 +0200 Subject: [PATCH 2/3] Replace "QrImage" with "QrImageView" in README.md Just was was changed here: https://github.com/theyakka/qr.flutter/commit/1fc6e38c198a76a6fd60b7bd3b4c190cd6c9330b --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d4be1d5..608ef29 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,15 @@ import 'package:qr_flutter/qr_flutter.dart'; Next, to render a basic QR code you can use the following code (or something like it): ```dart -QrImage( +QrImageView( data: "1234567890", version: QrVersions.auto, size: 200.0, ), ``` +**BREAKING CHANGE**: `QrImage` was renamed to `QrImageView` in version **4.0.1**! + Depending on your data requirements you may want to tweak the QR code output. The following options are available: | Property | Type | Description | @@ -90,7 +92,7 @@ Also, the following examples give you a quick overview on how to use the library A basic QR code will look something like: ```dart -QrImage( +QrImageView( data: 'This is a simple QR code', version: QrVersions.auto, size: 320, @@ -101,7 +103,7 @@ QrImage( A QR code with an image (from your application's assets) will look like: ```dart -QrImage( +QrImageView( data: 'This QR code has an embedded image as well', version: QrVersions.auto, size: 320, @@ -116,7 +118,7 @@ QrImage( To show an error state in the event that the QR code can't be validated: ```dart -QrImage( +QrImageView( data: 'This QR code will show the error state instead', version: 1, size: 320, From 8d78afdee8fc3bbf983b40cae3077b054c752276 Mon Sep 17 00:00:00 2001 From: Achim Friedland Date: Tue, 21 Jun 2022 12:57:07 +0200 Subject: [PATCH 3/3] Changed pubspec qr_flutter url from ssh to https --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 608ef29..75f8275 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ dependencies: dependencies: qr_flutter: git: - url: git@github.com:theyakka/qr.flutter.git + url: https://github.com/theyakka/qr.flutter.git ``` Keep in mind the `master` branch could be unstable.