QR code generation for wifi, geolocation,contact,etc using flutter packages?

Viewed 881

I would like to generate QR codes for wifi, vcard/contact, geolocation,etc but the qr code packages for flutter take string as input. Can anybody tell me how to convert the geolocation,etc to a string format? For example, in the ui for generating Contact qr code, I would give textbox for name, email,phone,etc, But how do I convert all of that into a string input for the Qr code generator package?

1 Answers

For Wifi:

WIFI:S:<SSID>;T:<WPA|WEP|>;P:<password>;;

For Geolocation:

geo:<LAT>,<LNG>

Use DD.DDDDD format for latitude and longitue.

For Contact:

BEGIN:VCARD
N:Smith;John;
TEL;TYPE=work,VOICE:(111) 555-1212
TEL;TYPE=home,VOICE:(404) 386-1017
TEL;TYPE=fax:(866) 408-1212
EMAIL:smith.j@smithdesigns.com
ORG:Smith Designs LLC
TITLE:Lead Designer
ADR;TYPE=WORK,PREF:;;151 Moore Avenue;Grand Rapids;MI;49503;United States of America
URL:https://www.smithdesigns.com
VERSION:3.0
END:VCARD
Related