Stylish Weather app.
- Flutter v1.2.1 stable
- Open Weather's API
- Flutter SDK
- Android Studio
- Xcode (with command line tools)
- 🍺 Brew
Before continue, you need update your brew: $ brew update
. This can take a considerable time if you haven't install anything in a while.
-
Download the Android 28 Platform: Run
$ /Users/${USER}/Library/Android/sdk/tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3
-
Accept android licence: Run
$ flutter doctor --android-licenses
accept terms and conditions hitting they
key. -
Install brew dependencies:
brew install --HEAD usbmuxd libimobiledevice
(Unstable versions 🙀)brew install ios-deploy cocoapods ideviceinstaller
(stable versions 😌)
-
Set up cocoapods:
$ pod setup
(spoiler: this will take a while) -
Link brew dependencies:
$ brew link usbmuxd
. If the console yell at you saying that you have already linked, force it:$ brew unlink usbmuxd && brew link usbmuxd
-
Verify that all is well and good running
$ flutter doctor
. If it doesn't, just follow that the doctor says 👨🏻⚕️. You can trust him; all this was extracted from his recommendations. -
Verify that you have emulators/simulators available:
$ flutter emulators
. You can create them using the Android Studio/Xcode emulator/simulator GUI, orflutter emulators --create [--name xyz]
. -
After that, you can launch it by running:
$ flutter emulators --launch <emulator name id>
- Before starting the app You need to make sure you have a API key form the http://openweathermap.org/
- After you have sign up for you API key:
- Create a
.env
file in the root directory of the project - Go to the environment template file and copy it's content
- Paste it on the
.env
file and replace the template with your API key - Launch your emulator/simulator:
$ flutter emulators --launch <emulator name id>
- Run the app:
$ flutter run
- Run:
$ flutter test
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.