Fix redesign

This commit is contained in:
Yoshi 2024-06-24 20:39:57 +03:00
parent 6646f657d2
commit 0d565752d5

View file

@ -92,6 +92,8 @@ class _InfoDailyCardState extends State<InfoDailyCard> {
itemCount: timeDaily.length, itemCount: timeDaily.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final indexedWeatherCodeDaily = weatherCodeDaily[index]; final indexedWeatherCodeDaily = weatherCodeDaily[index];
final temperature2MMin = weatherData.temperature2MMin?[index];
final temperature2MMax = weatherData.temperature2MMax?[index];
final apparentTemperatureMin = final apparentTemperatureMin =
weatherData.apparentTemperatureMin?[index]; weatherData.apparentTemperatureMin?[index];
final apparentTemperatureMax = final apparentTemperatureMax =
@ -124,8 +126,8 @@ class _InfoDailyCardState extends State<InfoDailyCard> {
time: weatherData.time![startIndex + hourOfDay], time: weatherData.time![startIndex + hourOfDay],
timeDay: sunrise, timeDay: sunrise,
timeNight: sunset, timeNight: sunset,
tempMax: apparentTemperatureMax!, tempMax: temperature2MMax!,
tempMin: apparentTemperatureMin!, tempMin: temperature2MMin!,
), ),
Card( Card(
margin: const EdgeInsets.only(bottom: 15), margin: const EdgeInsets.only(bottom: 15),