HackRU / OneAppFlutter

An official event app for HackRU
https://oneapp.hackru.org
MIT License
30 stars 13 forks source link

Check if the user presses back button on scanner without scanning anything #26

Closed SeanTaylorLane closed 5 years ago

SeanTaylorLane commented 5 years ago

Solves issue #20

I used the popup boolean variable to track if the user scanned a qr code or not. If they didn't scan a qr code, then I set popup to false, else I set it to true. When popup is true, the scanner works like normal. When popup is false, the app doesn't show a loading indicator, doesn't show a popup dialog, and doesn't make any network requests. When popup is set to false, the scanner does nothing.