flutter qrcode scanner app
qrcode scanner app build with flutter.
a new flutter project.
features
- [x] scan 2d barcodes
- [x] scan qr codes
- [x] control the flash while scanning
- [x] permission handling
- [ ] support multiple barcode libraries
getting started
flutter project
- add this to your package’s pubspec.yaml file:
dependencies: barcode_scan: "^1.0.0"
android
for android, you must do the following before you can use the plugin:
- add the camera permission to your androidmanifest.xml
<uses-permission android:name="android.permission.camera" />
- add the barcode activity to your androidmanifest.xml
<activity android:name="com.apptreesoftware.barcodescan.barcodescanneractivity"/>
ios
to use on ios, you must add the the camera usage description to your info.plist
<key>nscamerausagedescription</key>
<string>camera permission is required for barcode scanning.</string>
Comments are closed.