Guest User

Example

a guest
Jan 28th, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 4.67 KB | None | 0 0
  1.  
  2.  
  3.     Container(
  4.                         height: 150,
  5.                         decoration: BoxDecoration(
  6.                           color: Colors.red,
  7.                           borderRadius: BorderRadius.circular(20),
  8.                         ),
  9.                         child: Container(
  10.                           decoration: BoxDecoration(
  11.                             borderRadius: BorderRadius.circular(20),
  12.                           ),
  13.                           child: Row(
  14.                             mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  15.                             children: <Widget>[
  16.                               Padding(
  17.                                 padding: const EdgeInsets.all(15.0),
  18.                                 child: Column(
  19.                                   children: <Widget>[
  20.                                     Text(
  21.                                       precaution = pollutionModel.getPollution(
  22.                                           widget.airQualityModel.data.aqi),
  23.                                       style: const TextStyle(fontSize: 20),
  24.                                     ),
  25.                                     const Icon(
  26.                                       Icons.masks_outlined,
  27.                                       size: 40,
  28.                                     ),
  29.                                     Text(
  30.                                       widget.airQualityModel.data.aqi.toString(),
  31.                                       style: const TextStyle(fontSize: 20),
  32.                                     ),
  33.                                     const Text(
  34.                                       "US AQI",
  35.                                       style: TextStyle(fontSize: 10),
  36.                                     ),
  37.                                   ],
  38.                                 ),
  39.                               ),
  40.                               Padding(
  41.                                 padding: const EdgeInsets.all(15.0),
  42.                                 child: Column(
  43.                                   children: <Widget>[
  44.                                     const Text(
  45.                                       'Location',
  46.                                       style: TextStyle(fontSize: 20),
  47.                                     ),
  48.                                     const Icon(
  49.                                       Icons.location_city,
  50.                                       size: 40,
  51.                                     ),
  52.                                     Text(
  53.                                       widget.airQualityModel.data.city.name,
  54.                                       style: const TextStyle(fontSize: 10),
  55.                                     )
  56.                                   ],
  57.                                 ),
  58.                               ),
  59.                               Padding(
  60.                                 padding: const EdgeInsets.all(15.0),
  61.                                 child: Column(
  62.                                   children: <Widget>[
  63.                                     const Text(
  64.                                       'Date - Time',
  65.                                       style: TextStyle(fontSize: 20),
  66.                                     ),
  67.                                     const Icon(
  68.                                       Icons.timer,
  69.                                       size: 40,
  70.                                     ),
  71.                                     Text(widget.airQualityModel.data.time.s)
  72.                                   ],
  73.                                 ),
  74.                               ),
  75.                               Padding(
  76.                                 padding: const EdgeInsets.all(15.0),
  77.                                 child: Column(
  78.                                   children: <Widget>[
  79.                                     const Text(
  80.                                       "Dominent Polutent Level",
  81.                                       style: TextStyle(fontSize: 20),
  82.                                     ),
  83.                                     const Icon(
  84.                                       Icons.timeline_outlined,
  85.                                       size: 40,
  86.                                     ),
  87.                                     Text(
  88.                                       widget.airQualityModel.data.dominentpol,
  89.                                       style: const TextStyle(fontSize: 20),
  90.                                     ),
  91.                                   ],
  92.                                 ),
  93.                               )
  94.                             ],
  95.                           ),
  96.                         ),
  97.                       )
Advertisement
Add Comment
Please, Sign In to add comment