Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Container(
- height: 150,
- decoration: BoxDecoration(
- color: Colors.red,
- borderRadius: BorderRadius.circular(20),
- ),
- child: Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(20),
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: <Widget>[
- Padding(
- padding: const EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- Text(
- precaution = pollutionModel.getPollution(
- widget.airQualityModel.data.aqi),
- style: const TextStyle(fontSize: 20),
- ),
- const Icon(
- Icons.masks_outlined,
- size: 40,
- ),
- Text(
- widget.airQualityModel.data.aqi.toString(),
- style: const TextStyle(fontSize: 20),
- ),
- const Text(
- "US AQI",
- style: TextStyle(fontSize: 10),
- ),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- const Text(
- 'Location',
- style: TextStyle(fontSize: 20),
- ),
- const Icon(
- Icons.location_city,
- size: 40,
- ),
- Text(
- widget.airQualityModel.data.city.name,
- style: const TextStyle(fontSize: 10),
- )
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- const Text(
- 'Date - Time',
- style: TextStyle(fontSize: 20),
- ),
- const Icon(
- Icons.timer,
- size: 40,
- ),
- Text(widget.airQualityModel.data.time.s)
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- const Text(
- "Dominent Polutent Level",
- style: TextStyle(fontSize: 20),
- ),
- const Icon(
- Icons.timeline_outlined,
- size: 40,
- ),
- Text(
- widget.airQualityModel.data.dominentpol,
- style: const TextStyle(fontSize: 20),
- ),
- ],
- ),
- )
- ],
- ),
- ),
- )
Advertisement
Add Comment
Please, Sign In to add comment