qr 4.0.0
qr: ^4.0.0 copied to clipboard
A QR code generation library for Dart. Supports QR code version 1 through 40, error correction and redundancy.
4.0.0 #
- Breaking Change: Removed
QrBitBufferfrom public exports to tighten the API surface. - Breaking Change:
QrErrorCorrectLevelis now an enum (low,medium,quartile,high) instead of a class with integer constants (L,M,Q,H). - Breaking Change:
QrCodeandQrImageconstructors and properties now use theQrErrorCorrectLevelenum instead of integers. - Breaking Change: Removed
dataCachegetter fromQrCode. - Breaking Change:
QrCodeis now immutable. RemovedaddData,addByteData,addNumeric,addAlphaNumeric, andaddECIfromQrCode. - Breaking Change: Consolidated
QrCodeconstructors into a single public factory constructor takingQrPayload,errorCorrectLevel, and an optionalminTypeNumber. RemovedQrCode.fromData,QrCode.fromUint8List, andQrCode.fromPayload. - Breaking Change: Replaced
Uint8ListandByteDatain public API signatures withTypedData. - Breaking Change: Marked all public classes (
QrCode,QrImage,QrPayload,QrValidationResult,InputTooLongException) asfinal classto enforce structural immutability and prevent external subtyping. - Added
QrPayloadclass as a standalone accumulator for multi-part data and encoding modes (Numeric, Alphanumeric, Byte, ECI). Includes constructorsfromString,fromTypedData, and methodsaddString,addTypedData,addNumeric,addAlphaNumeric,addECI. - Added Extended Channel Interpretation (ECI) support via
QrPayload.addECIand theQrEciValueextension type. - Added
QrValidationResult.fromPayloadfactory constructor to validate QR code payloads and predict valid configurations. - Added
QrValidationResultclass returned by validation constructor. QrPayload.fromStringandQrPayload.addStringnow intelligently pick the right mode.- Throws
InputTooLongExceptionfor data that exceeds QR code version 40 capacity, preventing the generation of invalid QR codes. - Performance improvements for QR code generation.
QrImagegeneration is ~50% faster.LargeQrCodegeneration is ~40% faster.
- Require
sdk: ^3.11.0.
3.0.2 #
- Require package
web: ^1.0.0. - Require Dart 3.4 or greater.
3.0.1 #
- Fix example in
README.md. - Require Dart 2.16 or greater.
3.0.0 #
QrImageadded to handle image bits.QrCode.make()removedQrCode.isDark()moved toQrImage- Added alpha numeric mode support via
addAlphaNumeric
2.1.0 #
- Added numeric mode support via
addNumeric
2.0.0 #
- Expose Mask Pattern as a parameter of QrCode.make()
- Migrated to null safety.
- Require Dart SDK
>=2.12.0 <3.0.0.
1.3.0 #
- Added
QrCode.addByteData. - Added
QrCode.fromUint8List.
1.2.1 #
- Require Dart SDK
>=2.6.0 <3.0.0.
1.2.0 #
- Expose
InputTooLongExceptionexception so that applications and libraries can check for data length errors.
1.1.1 #
- Require Dart SDK
>=2.1.0 <3.0.0. - Fix a bug that fromData doesn't add supplied data.
1.1.0 #
- Add
fromDataQrCode factory that allows QrCode initiation without providingtypeNumber.
1.0.1 #
- Support Dart 2 stable.
1.0.0 #
- Require at least Dart SDK
2.0.0-dev.17. - Fixed a subtle bug with number handling.
0.1.0+2 #
- Update README to include basic documentation
- Update pubspec.yaml description
0.1.0+1 #
- Fix author email.
0.1.0 #
- Initial release.
