Blood Pressure devices flow implemented

dev_3.3_BLE
haroon amjad 2 years ago
parent fd79b10f41
commit 275fa5ca3a

@ -70,15 +70,15 @@ class _BloodPressureConnectScreenState extends State<BloodPressureConnectScreen>
children: [ children: [
Column( Column(
children: [ children: [
Text("Dia", style: TextStyle(fontSize: 20)), Text("Sys", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.dia.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)), Text(myTrackersViewModel.bpRtResultModel.sys.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("mmHg", style: TextStyle(fontSize: 10)), Text("mmHg", style: TextStyle(fontSize: 10)),
], ],
), ),
Column( Column(
children: [ children: [
Text("Sys", style: TextStyle(fontSize: 20)), Text("Dia", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.sys.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)), Text(myTrackersViewModel.bpRtResultModel.dia.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("mmHg", style: TextStyle(fontSize: 10)), Text("mmHg", style: TextStyle(fontSize: 10)),
], ],
), ),

@ -166,11 +166,13 @@ class MyTrackersViewModel extends ChangeNotifier {
clearEcgHistoryFiles() { clearEcgHistoryFiles() {
ecgHistoryFiles.clear(); ecgHistoryFiles.clear();
ecgHistoryFiles = [];
notifyListeners(); notifyListeners();
} }
parseEcgHistoryFiles(String mapData) { parseEcgHistoryFiles(String mapData) {
ecgHistoryFiles.clear(); ecgHistoryFiles.clear();
ecgHistoryFiles = [];
json.decode(mapData).forEach((v) { json.decode(mapData).forEach((v) {
ecgHistoryFiles.add(new ECGFileDetailModel.fromJson(v)); ecgHistoryFiles.add(new ECGFileDetailModel.fromJson(v));
}); });

Loading…
Cancel
Save