mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
added unit
property to AqiType
.
This commit is contained in:
@ -3,16 +3,18 @@ import 'package:syncrow_web/utils/color_manager.dart';
|
|||||||
import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
||||||
|
|
||||||
enum AqiType {
|
enum AqiType {
|
||||||
aqi('AQI'),
|
aqi('AQI', ''),
|
||||||
pm25('PM2.5'),
|
pm25('PM2.5', 'µg/m³'),
|
||||||
pm10('PM10'),
|
pm10('PM10', 'µg/m³'),
|
||||||
hcho('HCHO'),
|
hcho('HCHO', 'mg/m³'),
|
||||||
tvoc('TVOC'),
|
tvoc('TVOC', 'µg/m³'),
|
||||||
co2('CO2'),
|
co2('CO2', 'ppm'),
|
||||||
c6h6('C6H6');
|
c6h6('C6H6', 'µg/m³');
|
||||||
|
|
||||||
|
const AqiType(this.value, this.unit);
|
||||||
|
|
||||||
final String value;
|
final String value;
|
||||||
const AqiType(this.value);
|
final String unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
class AqiTypeDropdown extends StatefulWidget {
|
class AqiTypeDropdown extends StatefulWidget {
|
||||||
|
Reference in New Issue
Block a user