Skip to content

Swirastlynn/yet-another-weather-app

Repository files navigation

An app based on a publicly available design and API

How do I get set up?

FVM

Install fvm on your machine. Project configuration for fvm is in .fvm/fvm_config.json. To set up the same Flutter SDK version like the one I was working on, run in your project path:

fvm install

API keys

Create .env file in the project root folder. Add there a line of code sent to you by co-author.

Then go to env/env.dart and modify the file a bit. Comment out all the lines inside Env class.

import 'package:envied/envied.dart';

part 'env.g.dart';

@Envied(path: '.env')
abstract class Env {
  // @EnviedField(varName: 'OPENWEATHER_API_KEY')
  // @EnviedField(obfuscate: true)
  // static const openWeatherApiKey = _Env.openWeatherApiKey;
}

Then call flutter pub run build_runner build from CLI. Then uncomment the code inside Env class. In the end call flutter pub run build_runner build once again.

Voila, you can build a project!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published