天气APP

这是一个简单的天气应用程序,它会根据用户的位置显示天气信息。此应用程序是使用 Flutter 和 Dart 构建的。

该应用程序在24小时内完成,所以它并不那么完美?

点击此处下载应用

特点

  • 根据用户位置显示天气信息
  • 根据用户选择的位置显示天气信息
  • 基于天气状况和时间的自适应主题

环境设置

lib/core/resources/environment.dart中创建environment.dart,并放入以下环境变量来运行项目

    const String endpoint = "https://api.openweathermap.org/data/2.5/";
    const String weatherKey = "";
    const String weatherIcon = "https://openweathermap.org/img/wn/";
    const String googleApiKey = "";
    const List<double> defaultLocation = [-5, 120]; //INDONESIA

设置API

从以下网站获取您的密钥

截图

Sunrise Adaptive UI Midnight Adaptive UI Sunset Adaptive UI Morning Adaptive UI

支持我

如果您喜欢这个项目,请给我一个星⭐️并在GitHub上关注我

GitHub

查看 Github