天气预报应用
我们的目标?
开发天气应用程序的目的是在需要天气信息时获取全球天气数据。开发此软件的另一个目的是根据需要自动生成会话结束时或会话期间的报告。
我们创建了什么?
我们将创建一个受 SneekyPeeks 精美设计启发的应用程序。您将能够找到设备当前位置的实时天气数据,以及您能想到的任何城市的实时天气!
工作原理?
1-此应用程序为您提供您所在区域的天气。
2-您只需输入您所在城市(世界任何地方)的名称,然后点击天气按钮,它就会以精美的 UI 显示您所在区域的天气。
3-当您打开应用程序时,它会以带有圆形弹出窗口的加载屏幕打开。
4-获取数据后,当您点击左上角的箭头按钮(当前位置)时,它将为您提供您所在区域的天气预报。
What is in Weather Forecast ?
1 - Temperature
2 - Weather Condition ( Rainy, Sunny, Cloudy, Ice )
3 - Location
4 - What you will need there ( like warm clothes in winter)
5 - Beautiful User Interface
您还可以通过点击右上角的(类似房屋的)按钮来查看任何其他位置的天气,它将带您到一个新页面,在那里您可以填写您的城市信息并获取该区域的天气预报。
挑战?
1-How to use Dart to perform asynchronous tasks.
2-Understand async and await.
3-Learn about Futures and how to work with them.
4-How to network with the Dart http package.
5-What APIs are and how to use them to get data from the internet.
6-What JSONs are and how to parse them using the Dart convert package.
7-How to pass data forwards and backwards between screens using the Navigator.
8-How to handle exceptions in Dart using try/catch/throw.
9-Learn about the lifecycle of Stateful Widgets and how to override them.
10-How to use the Geolocator package to get live location data for both iOS and Android.
11-How to use the TextField Widget to take user input.
IDE 和编程语言?
此应用程序是使用 Android Studio 的 Flutter 开发的。
运行应用程序?
没有特殊要求,您只需设置您的设备,填写所需信息,然后点击天气按钮,即可查看您所在位置的天气?
参考 ☁️
截图 ?






