Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonavichus committed Oct 15, 2023
1 parent 0468965 commit 0f90107
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions lib/app/modules/main/view/weather.dart
Original file line number Diff line number Diff line change
@@ -139,23 +139,23 @@ class _WeatherPageState extends State<WeatherPage> {
timeSunset: sunset,
),
DescContainer(
humidity: mainWeather.relativehumidity2M![hourOfDay],
wind: mainWeather.windspeed10M![hourOfDay],
visibility: mainWeather.visibility![hourOfDay],
feels: mainWeather.apparentTemperature![hourOfDay],
evaporation: mainWeather.evapotranspiration![hourOfDay],
precipitation: mainWeather.precipitation![hourOfDay],
direction: mainWeather.winddirection10M![hourOfDay],
pressure: mainWeather.surfacePressure![hourOfDay],
rain: mainWeather.rain![hourOfDay],
cloudcover: mainWeather.cloudcover![hourOfDay],
windgusts: mainWeather.windgusts10M![hourOfDay],
uvIndex: mainWeather.uvIndex![hourOfDay],
dewpoint2M: mainWeather.dewpoint2M![hourOfDay],
humidity: mainWeather.relativehumidity2M?[hourOfDay],
wind: mainWeather.windspeed10M?[hourOfDay],
visibility: mainWeather.visibility?[hourOfDay],
feels: mainWeather.apparentTemperature?[hourOfDay],
evaporation: mainWeather.evapotranspiration?[hourOfDay],
precipitation: mainWeather.precipitation?[hourOfDay],
direction: mainWeather.winddirection10M?[hourOfDay],
pressure: mainWeather.surfacePressure?[hourOfDay],
rain: mainWeather.rain?[hourOfDay],
cloudcover: mainWeather.cloudcover?[hourOfDay],
windgusts: mainWeather.windgusts10M?[hourOfDay],
uvIndex: mainWeather.uvIndex?[hourOfDay],
dewpoint2M: mainWeather.dewpoint2M?[hourOfDay],
precipitationProbability:
mainWeather.precipitationProbability![hourOfDay],
mainWeather.precipitationProbability?[hourOfDay],
shortwaveRadiation:
mainWeather.shortwaveRadiation![hourOfDay],
mainWeather.shortwaveRadiation?[hourOfDay],
),
WeatherDaily(
weatherData: mainWeather.toJson(),
30 changes: 15 additions & 15 deletions lib/app/widgets/desc/desc_container.dart
Original file line number Diff line number Diff line change
@@ -7,21 +7,21 @@ import 'package:rain/app/widgets/status/status_data.dart';
class DescContainer extends StatefulWidget {
const DescContainer({
super.key,
this.humidity,
this.wind,
this.visibility,
this.feels,
this.evaporation,
this.precipitation,
this.direction,
this.pressure,
this.rain,
this.cloudcover,
this.windgusts,
this.uvIndex,
this.dewpoint2M,
this.precipitationProbability,
this.shortwaveRadiation,
required this.humidity,
required this.wind,
required this.visibility,
required this.feels,
required this.evaporation,
required this.precipitation,
required this.direction,
required this.pressure,
required this.rain,
required this.cloudcover,
required this.windgusts,
required this.uvIndex,
required this.dewpoint2M,
required this.precipitationProbability,
required this.shortwaveRadiation,
});
final int? humidity;
final double? wind;

0 comments on commit 0f90107

Please sign in to comment.