Skip to content

QR Code cannot be rendered #5

@TerrenceAddison

Description

@TerrenceAddison

I was trying to generate a widget to image but if I use the QrFlutter which has an embedded image the image will fail to render, code as below
Container( child: Container( width: 200, height: 200, color: Colors.white, child: Column( children: [ QrImage( data: widget.item.part, version: QrVersions.auto, size: 150.0, embeddedImage: AssetImage('assets/images/test.png'), embeddedImageStyle: QrEmbeddedImageStyle( size: Size(40, 40), ), ), SizedBox(height: 10), Text( widget.label, textDirection: ui.TextDirection.ltr, style: TextStyle(color: Colors.black), ), Text( "分片" + widget.formattedDate, textDirection: ui.TextDirection.ltr, style: TextStyle(color: Colors.black), ) ], ), ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions