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: [
Column(
children: [
Text("Dia", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.dia.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("Sys", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.sys.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("mmHg", style: TextStyle(fontSize: 10)),
],
),
Column(
children: [
Text("Sys", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.sys.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("Dia", style: TextStyle(fontSize: 20)),
Text(myTrackersViewModel.bpRtResultModel.dia.toString(), style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold)),
Text("mmHg", style: TextStyle(fontSize: 10)),
],
),

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

Loading…
Cancel
Save