Steelhacks-2023 / Lost-At-Pitt

Lost @ Pitt is a multi-platform lost-and-found tracking application, allowing users to return & reclaim lost items. Currently in development!
https://steelhacks-2023.github.io/Lost-At-Pitt/
6 stars 0 forks source link

Move all configurable setting defaults to JSON files #18

Open tbeidlershenk opened 10 months ago

tbeidlershenk commented 10 months ago

To work on after #28

Instead of having a utils class we should have JSON file data then import that data in the dart files that need it.

A not necessarily comprehensive list (@jeffzheng13 add to this if you see anything else)

  1. Map styling (currently in utils.dart)
  2. Options for drop-down menus (item tags, item "types")
  3. App settings (default location ... other settings I'm sure there are configurable options we will want to add in the future but I'm blanking right now)

We could go crazy and use JSON for the string data displayed in the app pages as well but that's way too much work than its worth I think

tbeidlershenk commented 7 months ago

https://docs.flutter.dev/ui/assets/assets-and-images#loading-text-assets

Can load JSON assets at app start ^