特点

创建一个天气预报应用程序的移动应用,允许用户查看天气预报。

该系统应包含 2 个页面

  • 一个天气列表页面,显示未来几天内的天气预报。
  • 一个天气详情页面,包含有关天气的详细信息。

技术栈

  • Dart
  • Flutter BLoC
  • Retrofit
  • Dio
  • Json Serializable
  • 构建 runner
  • Cached Network Image

开始使用

运行 flutter pub get 以更新 pub 包,如果 pubspec.yaml 中有更新。

flutter pub get

运行 flutter packages pub run build_runner build –delete-conflicting-outputs 以生成预编译文件

flutter pub run build_runner build --delete-conflicting-outputs

Android

测试 (APK)

flutter build apk -t lib/main.dart

iOS

测试 (iOS)

flutter build ios -t lib/main.dart

https://www.kutugondrong.com/

alt text alt text

GitHub

查看 Github