skip to Main Content

Hello I was wondering I’m using flutter web in my project and I noticed that when hovering over an image and right clicking, I don’t get the option to generate qr code for this image, but in many websites it’s there! So how do I implement this in flutter? Is there a way? Thanks in advance!

I tried using qr_picker package but it didn’t help me

2

Answers


  1. If you need to convert the image’s path to a QR Code, you can check out this library.

    It’s extremly simple and straightforward.

    Login or Signup to reply.
  2. The QR-code generation in your browser is most probably an extension that takes the link in the <img>-tag on normal websites and creates a qr-code with that.

    the problem is flutter (web) doensn’t use standard html elements to lay out its contents but a custom renderer.

    So your only way is to wrap your image in another widget that generates the qr-code for your users (use the one axel mentioned).
    If you use Image.network thats easy, just reuse your url.
    If your image is stored differently tho, you need to upload it anywhere accessable beforehand, or create deeplinks to a view with that image

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search