added unit property to AqiType.

This commit is contained in:
Faris Armoush
2025-05-27 16:56:01 +03:00
parent aded80fb9a
commit 42319cc4f9

View File

@ -3,16 +3,18 @@ import 'package:syncrow_web/utils/color_manager.dart';
import 'package:syncrow_web/utils/extension/build_context_x.dart';
enum AqiType {
aqi('AQI'),
pm25('PM2.5'),
pm10('PM10'),
hcho('HCHO'),
tvoc('TVOC'),
co2('CO2'),
c6h6('C6H6');
aqi('AQI', ''),
pm25('PM2.5', 'µg/m³'),
pm10('PM10', 'µg/m³'),
hcho('HCHO', 'mg/m³'),
tvoc('TVOC', 'µg/m³'),
co2('CO2', 'ppm'),
c6h6('C6H6', 'µg/m³');
const AqiType(this.value, this.unit);
final String value;
const AqiType(this.value);
final String unit;
}
class AqiTypeDropdown extends StatefulWidget {