state.dart 1.1 KB

1234567891011121314151617181920212223242526
  1. import 'package:get/get.dart';
  2. import 'package:vnote_device_plugin/consts/types.dart';
  3. import 'package:vitalapp/pages/medical/models/item.dart';
  4. class MedicalState {
  5. final RxnString _currentTab = RxnString(null);
  6. final RxList<MedicalItem> _medicalMenuList = RxList<MedicalItem>([
  7. // MedicalItem(key: DeviceTypes.TEMP, diagnosticItem: '体温'),
  8. // MedicalItem(key: DeviceTypes.SUGAR, diagnosticItem: '血糖'),
  9. // MedicalItem(key: DeviceTypes.NIBP, diagnosticItem: '血压'),
  10. // MedicalItem(key: DeviceTypes.SPO2, diagnosticItem: '血氧'),
  11. // MedicalItem(key: DeviceTypes.WEIGHT, diagnosticItem: 'BMI'),
  12. ]);
  13. // final Rx<Map<String, dynamic>> _diagnosisDataValue = Rx({});
  14. String? get currentTab => _currentTab.value;
  15. set currentTab(String? val) => _currentTab(val);
  16. /// 健康检测列表
  17. set medicalMenuList(List<MedicalItem> value) => _medicalMenuList(value);
  18. List<MedicalItem> get medicalMenuList => _medicalMenuList;
  19. // Map<String, dynamic> get diagnosisDataValue => _diagnosisDataValue.value;
  20. // set diagnosisDataValue(Map<String, dynamic> val) => _diagnosisDataValue(val);
  21. }