FLUTTER ECOSYSTEM

ArizArmeidi/FlutterWeather

使用 Flutter 和 Dart 创建的天气应用

FlutterWeather 项目封面
Stars
340
Forks
113
最近推送(UTC)
2024年1月19日
项目状态
未归档
Ariz Armeidi GitHub avatar
GITHUB User

Ariz Armeidi ↗

Mobile App Developer specializing in Flutter and Dart

@OneFoundry
语言DartC++CMakeHTMLCSwiftKotlinObjective-C

技术话题

关联插件与示例

使用的依赖

依赖清单 15 项

App 分类

所在榜单

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

FlutterWeather

Updated to Flutter 3.0 & New Updated Design

A simple weather App created using Flutter and Dart and using API from OpenWeatherMap

New Design Inspired by Rina Damayanti on Dribbble.

https://github.com/ArizArmeidi/FlutterWeather/assets/60814961/ab3f4a18-e6bb-4688-b70b-305611d7e8b5 https://github.com/ArizArmeidi/FlutterWeather/assets/60814961/95cba2e0-62b7-40b5-93b2-f16ee95c96a1 https://github.com/ArizArmeidi/FlutterWeather/assets/60814961/9638b4d9-ec4d-4401-9052-dacaac2f7ef6 https://github.com/ArizArmeidi/FlutterWeather/assets/60814961/5189de89-1a3d-499a-867b-d12b856653a6

API Docs

[!IMPORTANT] This project uses version 2.5 of the OpenWeatherMap API
API used in this project:

Features

  • Automatically acquire user current location
  • Searchable location
  • Hourly weather information
  • 7 days weather information

How to Run

  1. Create an account at OpenWeatherMap.
  2. Then get your API key from https://home.openweathermap.org/api_keys.

    Sometimes after getting your OpenWeatherMap API key it won't work right away
    To test if your API key is working or not copy and paste the following link to your browser
    https://api.openweathermap.org/data/2.5/weather?lat=53.4794892&lon=-2.2451148&units=metric&appid=YOUR_API_KEY
    Then replace YOUR_API_KEY with your own API key from OpenWeatherMap

  3. Clone the repo
    git clone https://github.com/ArizArmeidi/FlutterWeather.git
    
  4. Install all the packages by typing
    flutter pub get
    
  5. Navigate to lib/provider/weatherProvider.dart and paste your API key to the apiKey variable
    String apiKey = 'Paste Your API Key Here';
    
  6. Run the App

Contact

License

Distributed under the MIT License. See LICENSE for more information.