A Simple Cross-platform Weather App Showcasing Various Flutter Programming Techniques

weather-cross-platform

This is a simple cross-platform weather app written in Dart using the Flutter framework, for both Android and iOS platforms.

It showcases various Flutter programming techniques, including:

  • Asynchronous network requests using the http package
  • Deserialize JSON response using json_serializable
  • Display images from the internet using Image.network()
  • Display data using FutureBuilder widget
  • Find current location using geolocator
  • Store key-value data using shared_preferences
  • Singleton pattern with factory constructor
  • Unit testing using mockito

Features

  • Search by city name
  • Display the city’s weather condition
  • Detect the current location and display its weather condition
  • Remember previously searched location

Dependencies

  • json_serializable
  • geolocator
  • shared_preferences

Requirements

  • Flutter 1.22.2 or higher
  • Dart 2.10.0 or higher

Setup

  1. Get your API key from OpenWeatherMap.
  2. Replace the _apiKey constant in weather_service.dart with your API key.

Download Details:

Author: cyliong

Source Code: https://github.com/cyliong/weather-cross-platform

#flutter #dart #mobile-apps

A Simple Cross-platform Weather App Showcasing Various Flutter Programming Techniques
11.00 GEEK