Skip to content

Commit

Permalink
Added FadeIn animation to weather icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Andrés Díaz authored and Jorge Andrés Díaz committed Feb 11, 2024
1 parent 887b735 commit 9b78158
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:animate_do/animate_do.dart';
import 'package:flutter/material.dart';
import 'package:solar_energy_prediction/core/config/l10n/l10n.dart';
import 'package:solar_energy_prediction/core/constants/date_extensions.dart';
Expand All @@ -7,8 +8,7 @@ import 'package:solar_energy_prediction/features/map/domain/entities/weather.dar
class WeatherForecastHorizontalListView extends StatelessWidget {
final List<Weather> weatherForecastList;

const WeatherForecastHorizontalListView(
{super.key, required this.weatherForecastList});
const WeatherForecastHorizontalListView({super.key, required this.weatherForecastList});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -57,11 +57,9 @@ class WeatherForecastHorizontalListView extends StatelessWidget {
item.timestamp.getTime(),
style: textTheme.bodySmall,
),
Image.network(item.iconUrl),
FadeIn(child: Image.network(item.iconUrl)),
Text(
item.temperature.average
.toString()
.addCelsiusSymbol(),
item.temperature.average.toString().addCelsiusSymbol(),
style: textTheme.titleSmall,
),
],
Expand Down

0 comments on commit 9b78158

Please sign in to comment.