Flutter docs
Default skin

QRCode

Components that can convert text into QR codes, and support custom color and logo.

When to use

Used when the text needs to be converted into a QR Code.

Examples

base

Basic Usage.

other status

The status can be controlled by the value status, four values ​​of active, expired, loading, scanned are provided.

Custom Render Type

Customize the rendering results by type, provide options canvas and svg.

Custom Color

Custom Color.

Error Level

set Error Level.

Custom semantic dom styling

You can customize the semantic dom style of QRCode by passing objects/functions through classNames and styles.

With Icon

QRCode with Icon.

custom status render

You can control the rendering logic of the QR code in different states through the value of statusRender.

Custom Size

Custom Size.

Download QRCode

A way to download QRCode.

Advanced Usage

With Popover.

API

QRCode are exported from @ceebee/ui/client.

QRCode

PropertyDescriptionTypeDefaultVersion
valuescanned textstring | string[]-string[]: 5.28.0
typerender typecanvas | svgcanvas5.6.0
iconinclude image url (only image link are supported)string--
sizeQRCode sizenumber160-
iconSizeinclude image sizenumber | { width: number; height: number }405.19.0
colorQRCode Colorstring#000-
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-6.0.0
bgColorQRCode Background Colorstringtransparent5.5.0
marginSizeQuiet zone size (in modules). 0 means no marginnumber06.2.0
borderedWhether has border stylebooleantrue-
errorLevelError Code Level'L' | 'M' | 'Q' | 'H'M-
boostLevelIf enabled, the Error Correction Level of the result may be higher than the specified Error Correction Levelbooleantrue5.28.0
statusQRCode statusactive | expired | loading | scannedactivescanned: 5.13.0
statusRendercustom status render(info: StatusRenderInfo) => React.ReactNode-5.20.0
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-6.0.0