A Flutter prototype project for displaying UV Index data based on location in New Zealand.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- Go to
Run and Debug
and runuv_flutter_app (debug mode)
.
package.json contains helpful flutter scripts using npm.
Information on environmental variables in Flutter can be found here.
In packages.json
, ensure each run
command has the argument --dart-define-from-file=.env
.
For local development, et up a .env file and add the following:
NIWA_API_KEY=<API_KEY_HERE>