holtzmak / Humane-Transport

A Flutter and Firebase mobile application to record Canadian animal transport and transfer of care documentation
https://sanakhan1997.github.io/Humane-Transport/
GNU General Public License v3.0
6 stars 3 forks source link

Add set as default ATR button #232

Closed holtzmak closed 3 years ago

holtzmak commented 3 years ago

Closes #211 .

In this PR I have:

  1. Added a button to set your default ATR. This can be clicked again if misclicked.
  2. Made the SharedPreferencesService for shared preferences use

    About shared preferences... the data exists until the app is deleted or cache cleared (when updating). So, on sign out we have to clear it manually.

  3. I added notifications to use the default ATR because people might forget
  4. I updated unit tests accordingly

The information kept for the default ATR does not include:

  1. FWR info
  2. Loading information
  3. Contingency event information

These are different between transports, so the transporter should input new information each time.


Changes look like:

https://user-images.githubusercontent.com/32527219/112397238-4f322900-8cc7-11eb-8514-20455914b4ed.mp4

https://user-images.githubusercontent.com/32527219/112397243-535e4680-8cc7-11eb-8c49-3d3d754fecad.mp4