mirror of
https://github.com/TrentSPalmer/libre_gps_parser.git
synced 2024-11-15 19:41:30 -08:00
35 lines
800 B
Dart
35 lines
800 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'global_helper_functions.dart';
|
||
|
|
||
|
|
||
|
class Weather extends StatefulWidget {
|
||
|
|
||
|
Map<String, dynamic> weather;
|
||
|
|
||
|
Weather({Key key, this.weather}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
_WeatherState createState() => new _WeatherState();
|
||
|
}
|
||
|
|
||
|
class _WeatherState extends State<Weather> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
padding: myBoxPadding,
|
||
|
decoration: myBoxDecoration(ivory),
|
||
|
child: Wrap(
|
||
|
spacing: 10.0,
|
||
|
children: <Widget>[
|
||
|
Text(
|
||
|
'Current Weather Conditions: ${widget.weather['weather'][0]['description']}',
|
||
|
),
|
||
|
Text(
|
||
|
'Weather location: ${widget.weather['id']}',
|
||
|
),
|
||
|
],
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|