File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ import 'package:flutter_weather/main.dart';
33import 'package:flutter_weather/src/model/weather.dart' ;
44import 'package:flutter_weather/src/widgets/value_tile.dart' ;
55
6+ /// Renders Weather Icon, current, min and max temperatures
67class CurrentConditions extends StatelessWidget {
7-
88 final Weather weather;
9-
109 const CurrentConditions ({Key key, this .weather}) : super (key: key);
1110
1211 @override
@@ -33,16 +32,14 @@ class CurrentConditions extends StatelessWidget {
3332 ValueTile ("max" ,
3433 '${this .weather .maxTemperature .as (AppStateContainer .of (context ).temperatureUnit ).round ()}°' ),
3534 Padding (
36- padding: const EdgeInsets .only (left: 20 , right: 20 ),
35+ padding: const EdgeInsets .only (left: 15 , right: 15 ),
3736 child: Center (
3837 child: Container (
39- width: 1 ,
40- height: 30 ,
41- color: AppStateContainer .of (context)
42- .theme
43- .accentColor
44- .withAlpha (50 ),
45- )),
38+ width: 1 ,
39+ height: 30 ,
40+ color:
41+ AppStateContainer .of (context).theme.accentColor.withAlpha (50 ),
42+ )),
4643 ),
4744 ValueTile ("min" ,
4845 '${this .weather .minTemperature .as (AppStateContainer .of (context ).temperatureUnit ).round ()}°' ),
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class WeatherWidget extends StatelessWidget {
5555 Row (mainAxisAlignment: MainAxisAlignment .center, children: < Widget > [
5656 ValueTile ("wind speed" , '${this .weather .windSpeed } m/s' ),
5757 Padding (
58- padding: const EdgeInsets .only (left: 20 , right: 20 ),
58+ padding: const EdgeInsets .only (left: 15 , right: 15 ),
5959 child: Center (
6060 child: Container (
6161 width: 1 ,
@@ -71,7 +71,7 @@ class WeatherWidget extends StatelessWidget {
7171 DateFormat ('h:m a' ).format (DateTime .fromMillisecondsSinceEpoch (
7272 this .weather.sunrise * 1000 ))),
7373 Padding (
74- padding: const EdgeInsets .only (left: 20 , right: 20 ),
74+ padding: const EdgeInsets .only (left: 15 , right: 15 ),
7575 child: Center (
7676 child: Container (
7777 width: 1 ,
@@ -87,7 +87,7 @@ class WeatherWidget extends StatelessWidget {
8787 DateFormat ('h:m a' ).format (DateTime .fromMillisecondsSinceEpoch (
8888 this .weather.sunset * 1000 ))),
8989 Padding (
90- padding: const EdgeInsets .only (left: 20 , right: 20 ),
90+ padding: const EdgeInsets .only (left: 15 , right: 15 ),
9191 child: Center (
9292 child: Container (
9393 width: 1 ,
You can’t perform that action at this time.
0 commit comments