Skip to content

Commit 193715b

Browse files
authored
prepare v4.0.0 (#161)
web page cleanup, etc
1 parent a445266 commit 193715b

14 files changed

Lines changed: 45 additions & 45 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.0.0-wip
1+
## 4.0.0
22

33
- **Breaking Change**: Removed `QrBitBuffer` from public exports to tighten the API surface.
44
- **Breaking Change**: `QrErrorCorrectLevel` is now an enum (`low`, `medium`, `quartile`, `high`) instead of a class with integer constants (`L`, `M`, `Q`, `H`).

‎README.md‎

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A QR code generation library for Dart and Flutter.
1+
A QR code generation package for Dart.
22

33
[![Pub Package](https://img.shields.io/pub/v/qr.svg)](https://pub.dev/packages/qr)
44
[![package publisher](https://img.shields.io/pub/publisher/qr.svg)](https://pub.dev/packages/qr/publisher)
@@ -10,6 +10,12 @@ A QR code generation library for Dart and Flutter.
1010
- Error correction / redundancy
1111
- ECI (Extended Channel Interpretation) support
1212

13+
# Demo
14+
15+
A rich, HTML demo can be found at: [qr.kevmoo.com](https://qr.kevmoo.com/).
16+
17+
[![QR Code Generator Demo](example/assets/qr_kevmoo_screen_shot.webp)](https://qr.kevmoo.com/)
18+
1319
# Getting started
1420

1521
To start, import the dependency in your code:
@@ -56,24 +62,9 @@ for (var x = 0; x < qrImage.moduleCount; x++) {
5662

5763
See the `example` directory for further details.
5864

59-
# Pre-made UI libraries
60-
61-
The following libraries use qr.dart to generate QR codes for you out of the box:
65+
# Packages that use `package:qr`
6266

63-
[qr_flutter](https://pub.dev/packages/qr_flutter) - A Flutter Widget to render
67+
- [pretty_qr_code](https://pub.dev/packages/pretty_qr_code) - A Flutter Widget to render
6468
QR codes
65-
66-
[barcode](https://pub.dev/packages/barcode) - A package that supports many types
67-
of scannable codes, include QR.
68-
69-
# Exporting
70-
71-
The following packages can be used to export QR codes directory to an image:
72-
73-
* [qr_image_exporter](https://pub.dev/packages/qr_image_exporter) - A library to
74-
export QR codes as PNG image data.
75-
76-
# Demo
77-
78-
A working demo can be found here:
79-
[qr.kevmoo.com](https://qr.kevmoo.com/)
69+
- [qr_image_exporter](https://pub.dev/packages/qr_image_exporter) - A library to
70+
export QR codes as PNG image data.

‎api.txt‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package:qr/qr.dart:
22
InputTooLongException (class extends Object implements Exception, final):
3-
new (constructor: InputTooLongException Function(int, int))
3+
inputBits (getter: int)
44
inputLimit (getter: int)
5-
message (getter: String)
6-
providedInput (getter: int)
75
toString (method: String Function())
86
QrCode (class extends Object, final):
97
new (constructor: QrCode Function({QrErrorCorrectLevel errorCorrectLevel, int minTypeNumber, required QrPayload payload}))

‎example/assets/dash_waiting.png‎

-458 KB
Binary file not shown.

‎example/assets/dash_waiting.webp‎

25.2 KB
Loading

‎example/assets/dash_worried.png‎

-559 KB
Binary file not shown.

‎example/assets/dash_worried.webp‎

49.5 KB
Loading
49.1 KB
Loading

‎example/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ <h1>Online QR Code Generator</h1>
4343
<div class="grid">
4444
<div>
4545
<canvas height='600' id='content' width='600'></canvas>
46-
<img id="validation-error" src="assets/dash_worried.png" class="validation-image" hidden>
47-
<img id="validation-waiting" src="assets/dash_waiting.png" class="validation-image" hidden>
46+
<img id="validation-error" src="assets/dash_worried.webp" class="validation-image" hidden>
47+
<img id="validation-waiting" src="assets/dash_waiting.webp" class="validation-image" hidden>
4848
<div id='status'></div>
4949
</div>
5050
<div>

‎lib/qr.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export 'src/ecivalue.dart';
22
export 'src/error_correct_level.dart';
3-
export 'src/input_too_long_exception.dart';
3+
export 'src/input_too_long_exception.dart' show InputTooLongException;
44
export 'src/payload.dart' show QrPayload;
55
export 'src/qr_code.dart' show QrCode;
66
export 'src/qr_image.dart';

0 commit comments

Comments
 (0)