cute_qr_code 1.1.1 copy "cute_qr_code: ^1.1.1" to clipboard
cute_qr_code: ^1.1.1 copied to clipboard

Aesthetic QR code generation for Flutter, ported from qrcode-kotlin.

1.1.1 #

Fixed #

  • QR content not centered in widget preview when container size is not divisible by module count (paintOntoCanvas remainder pixels)
  • QR content not centered when canvasSize is larger than the module grid or when backgroundColor exposes uneven padding
  • Logo clear/draw area misaligned with module coordinates when canvas padding exists
  • margin no longer double-applied via both xOffset/yOffset and canvas resize; quiet zone is centered via _resolveDrawOffsets

Added #

  • Centering regression tests in test/centering_test.dart (fixed canvas, margin, paintOntoCanvas, quiet-zone boundary)

Changed #

  • QrCodeConfig.xOffset / yOffset are applied as extra offset from auto-centered layout, not as absolute top-left when canvas exceeds content size

1.1.0 #

Added #

  • CuteQrCode.data(), errorBuilder, CuteQrDataView, CuteQrCodeView, CuteQrRenderView
  • QrCode.paintOntoCanvas(), QrCodeProcessor.minTypeForData(), resolveTypeNumber()
  • QrCodeConfig.strictTypeNumber, typeNumber alias
  • Encoding, layout, and error-handling tests
  • Reorganized lib/src/ into config/, core/, encoding/, painting/, rendering/, widgets/
  • Bilingual (English + Chinese) documentation comments across public API

Changed #

  • CuteQrCode constraint-aware layout (LayoutBuilder + RenderBox)
  • Explicit informationDensity auto-upgrades when too small (debug warning); 0 = auto
  • QrCodePainter uses paintOntoCanvas
  • Internal import paths: raw/ + internals/encoding/; render/rendering/; color/ + shape/painting/

Fixed #

  • Data-type regex ported incorrectly from kotlin
  • Bit-accurate auto version selection
  • CuteQrRenderView sizing under non-square tight constraints

Deprecated #

  • QrCode.fitIntoArea() — use paintOntoCanvas or CuteQrRenderView

Migration #

  • Remove hardcoded informationDensity: 3; use null or 0 for auto version selection
  • Place widgets in a bounded parent (SizedBox, Expanded); fixed size is optional
  • Deep imports package:cute_qr_code/src/internals/...package:cute_qr_code/src/encoding/...

1.0.0 #

  • Initial release — pure Dart/Flutter port of qrcode-kotlin
  • QrCodeConfig configuration API with QrCode.create(data, config) entry point
  • Shape factories: squares, circles, roundedSquares, custom
  • Flutter Color + Material Colors; QrColorUtils.css() for hex strings
  • Center logo via ImageProvider (AssetImage, NetworkImage, etc.)
  • PNG export via renderToBytes() and cuteQrCodeToPng()
  • CuteQrCode widget, QrCodePainter, and example app
  • Low-level QrCodeProcessor encoding API
0
likes
160
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Aesthetic QR code generation for Flutter, ported from qrcode-kotlin.

Repository (GitHub)
View/report issues

Topics

#qrcode

License

MIT (license)

Dependencies

flutter

More

Packages that depend on cute_qr_code