QR Code Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Reusable widget that renders a QR code on-device from a given URL string using the qr_flutter package. The widget supports configurable size, error correction level, and foreground/background colors to meet WCAG contrast requirements. No external service dependency; all rendering is performed locally on the device.
qr-code-widget
Responsibilities
- Render QR code from a referral URL string entirely on-device
- Support configurable size, padding, and error correction level
- Ensure sufficient contrast ratio for scanability and accessibility
- Provide a save-to-gallery action for the rendered QR image
Interfaces
QrCodeWidget(data, size, errorCorrectionLevel)
onSaveToGallery()
rebuildWithNewData(newUrl)