简体   繁体   中英

How can i save or locally store a scanned qr code with dart flutter. does anyone have an idea?

How can i save or locally store a scanned qr code with dart flutter. does anyone have an idea? i can scan the code already but i want to store it now. could you help me guys?

You can use shared preference to store data locally. In your case, would store the scanning result in the share preferences.

See the package to see how to use it https://pub.dev/packages/shared_preferences

There are lots of dart packages out there that you can use to store data locally.

These are some of the packages:

You can choose any of these based on your preference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM