I've created a mobile app with Flutter framework that can predict laptop prices. Now, I want to add a special functionality: for every prediction the user does, I want the app to generate a QR Code with the price, so that another user scan it, and it will automatically fill his characteristics like the other user.
Your QR code generator string must contain all characteristics that the creator entered
Ex.:
User x created a computer with 16GB ram & Core i7 7700HQ etc..
the generator string should be
{"ram":"16gb","cpu":"i7 7700hq",...}
you can use a Map<String, String>
for the entered characteristics and use jsonEncode(yourMap)
to convert it to string and pass it the the QR Code generator
when the receiver scan the QR Code, he will get {"ram":"16gb","cpu":"i7 7700hq",...}
, use jsonDecode(yourMap)
to reconvert the string to Map<String, String>
characteristics in your receiver's device, predict the price according to what you got in the map