qr_image_exporter 2.0.0
qr_image_exporter: ^2.0.0 copied to clipboard
An extension for the `qr.dart` package that provides a simple and robust way to export QR code modules as customizable PNG byte data.
2.0.0 #
This release upgrades the qr dependency to 4.0.0, which contains breaking API changes.
Because this package's extension is defined on QrImage, users must construct QrImage
using the qr package directly — making qr's API an inseparable part of the user-facing
interface. Upgrading to this version therefore requires updating call sites accordingly.
Breaking Changes #
- Raised minimum
qrconstraint to^4.0.0.qr4.0.0 renamed and restructured several APIs. The following changes are required in your code when upgrading:QrCode.fromData(data: ..., errorCorrectLevel: ...)→QrCode(payload: QrPayload.fromString(...), errorCorrectLevel: ...)QrErrorCorrectLevel.L→QrErrorCorrectLevel.lowQrErrorCorrectLevel.M→QrErrorCorrectLevel.mediumQrErrorCorrectLevel.Q→QrErrorCorrectLevel.quartileQrErrorCorrectLevel.H→QrErrorCorrectLevel.high
- Raised minimum Dart SDK constraint to
^3.11.0(previously^3.8.1), as required byqr4.0.0. Dart 3.8.x–3.10.x are no longer supported.
1.0.1 #
- Fixed: Prevent Out-Of-Memory (OOM) crashes by validating maximum safe hardware texture limits.
- Fixed: Add validation for invalid parameters to prevent errors when
moduleSizeormarginare negative. - Fixed: Update
toPngBytesdoc comments to accurately reflect the internal error handling behavior. - Added: Introduce GitHub Actions CI workflow for automated testing and static analysis on Dart SDK 3.8.1 and stable.
- Changed: Remove the unused
lintsdev dependency to clean up project dependencies.
1.0.0 #
- Initial stable release.
- Provides the
QrImageExporterextension onQrImageto export QR codes as PNG byte data. - Adds the
toPngBytesmethod with customizable parameters formoduleSize,margin,darkColor, andlightColor. - Depends on the
imagepackage to handle image creation and PNG encoding.