aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/weather/weather.dart
diff options
context:
space:
mode:
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),
),