A simple flutter app that fetches weather data from openweathermap.org

  Flutter App, Weather

Clima

My Goal

The objective of this project is to learn about asynchronous programming in Dart. I’ll be looking at how to carry out time-consuming tasks such as getting device location and networking to get data from the internet.

What I will create

I’m going to make a weather app inspired by the beautiful designs made by Olia Gozha. By the end of the module, you’ll be able to find out the live weather data in the current location of the device as well as the weather for any city you can think of!

Finished App

What I learn’t

  • How to use Dart to perform asynchronous tasks.
  • Understand async and await.
  • Learn about Futures and how to work with them.
  • How to network with the Dart http package.
  • What APIs are and how to use them to get data from the internet.
  • What JSONs are and how to parse them using the Dart convert package.
  • How to pass data forwards and backwards between screens using the Navigator.
  • How to handle exceptions in Dart using try/catch/throw.
  • Learn about the lifecycle of Stateful Widgets and how to override them.
  • How to use the Geolocator package to get live location data for both iOS and Android.
  • How to use the TextField Widget to take user input.

Download Clima app source code on GitHub

https://github.com/david-legend/clima-app