QR Code scanner for covid list
QR code scanner is a mobile application where shopkeepers have an app that shows QR code and users can scan this QR code which will automatically add that user to the visitor list. This should replace manual entry of contact details in the shop due to COVID.
BFH/recdRQxvgOGx8Toyv/2021
Environment:
sdk: ">=2.12.0 <3.0.0"
minSdkVersion: 21
qr_flutter: 4.0.0
qr_code_scanner: 0.4.0
firebase_core: 1.2.0
firebase_auth: 1.2.0
cloud_firestore: 2.2.0
rflutter_alert: 2.0.2
flutter_spinkit: 5.0.0
url_launcher: 6.0.4
Instructions for setting up project
- Setup Flutter
- Setup Android SDK
- Clone the repository
- Run the below command in the cloned directory.
flutter pub get
- Create a firebase project with name
com.example.qr2
(Default,Can be changed with some editing in AndroidManifest.xml) and download the JSON file from Firebase\ - Put the Firebase JSON file in \android\app\
- In the Firebase Console enable Firebase authentication(Email and Password).
- In the Firebase enable Firestore and start a collection named
USER
Instructions for running
- Open the cloned repository
- In Terminal(Linux) or PowerShell(Windows) enter the command below to build and run debug while Android phone is connected via Developer Mode
flutter run
- Open the cloned repository
- In Terminal(Linux) or PowerShell(Windows) enter the command below to build and run release version while Android phone is connected via Developer Mode
flutter run --release
- Open the cloned repository
- In Terminal(Linux) or PowerShell(Windows) enter the command below to build release APK
flutter build apk --release
ORflutter build apk --release -split-per-abi
for splitting APK per architecture - Copy the APK file named
app-release.apk
from the directory<project-directory>/build/app/outputs/flutter-apk
- Install the APK in your phone