summaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/weather/weather.dart
diff options
context:
space:
mode:
authorLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-16 22:44:34 -0300
committerLisandro Perez Meyer <lpmeyer@ics.com>2023-11-17 01:48:26 +0000
commit4d77bab5a0f698943d1abf74482eecef7cc95f08 (patch)
tree49e0a590b5903cc7553b1a4fc3cb2fbcd13cebf4 /lib/presentation/screens/weather/weather.dart
parent6a00ac1f8613048b5c1f7ecdbd1adcbbcfdca5ed (diff)
Bug fixes. Fixed Fan mode selection off state bug.
Fixes ICS' internal AGL-48,49,50. Original from Sabin Sajeevan <ssajeevan@ics.com> Bug-AGL: SPEC-4971 Change-Id: I66c875551a69a1b53eee2d6e1d3fa725b20ff41b Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Diffstat (limited to 'lib/presentation/screens/weather/weather.dart')
-rw-r--r--lib/presentation/screens/weather/weather.dart4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/presentation/screens/weather/weather.dart b/lib/presentation/screens/weather/weather.dart
index 7231700..d86bd13 100644
--- a/lib/presentation/screens/weather/weather.dart
+++ b/lib/presentation/screens/weather/weather.dart
@@ -7,6 +7,8 @@ class WeatherPage extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
double weatherIconSize = MediaQuery.sizeOf(context).width * 0.278;
+ final unit =
+ ref.watch(unitStateProvider.select((unit) => unit.temperatureUnit));
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
@@ -58,7 +60,7 @@ class WeatherPage extends ConsumerWidget {
height: 60,
),
Text(
- "28.3°C",
+ "28.3°${unit == TemperatureUnit.celsius ? "C" : "F"}",
style: GoogleFonts.brunoAce(
color: Colors.white, fontSize: 128),
),