small fix on desing and create model

merge-requests/47/head
Elham Rababah 6 years ago
parent 49f9841079
commit 4309a2141a

@ -0,0 +1,64 @@
class PrescriptionReqModel {
int patientID;
int setupID;
int projectID;
int languageID;
String stamp;
String iPAdress;
double versionID;
int channel;
String tokenID;
String sessionID;
bool isLoginForDoctorApp;
bool patientOutSA;
int patientTypeID;
PrescriptionReqModel(
{this.patientID,
this.setupID,
this.projectID,
this.languageID,
this.stamp,
this.iPAdress,
this.versionID,
this.channel,
this.tokenID,
this.sessionID,
this.isLoginForDoctorApp,
this.patientOutSA,
this.patientTypeID});
PrescriptionReqModel.fromJson(Map<String, dynamic> json) {
patientID = json['PatientID'];
setupID = json['SetupID'];
projectID = json['ProjectID'];
languageID = json['LanguageID'];
stamp = json['stamp'];
iPAdress = json['IPAdress'];
versionID = json['VersionID'];
channel = json['Channel'];
tokenID = json['TokenID'];
sessionID = json['SessionID'];
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
patientOutSA = json['PatientOutSA'];
patientTypeID = json['PatientTypeID'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['PatientID'] = this.patientID;
data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID;
data['LanguageID'] = this.languageID;
data['stamp'] = this.stamp;
data['IPAdress'] = this.iPAdress;
data['VersionID'] = this.versionID;
data['Channel'] = this.channel;
data['TokenID'] = this.tokenID;
data['SessionID'] = this.sessionID;
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
data['PatientOutSA'] = this.patientOutSA;
data['PatientTypeID'] = this.patientTypeID;
return data;
}
}

@ -97,7 +97,8 @@ class _LabOrdersScreenState extends State<LabOrdersScreen> {
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0), 0),
child: ListView.builder( child: ListView.builder(
itemCount: patientsProv.patientLabResultOrdersList.length, itemCount:
patientsProv.patientLabResultOrdersList.length,
itemBuilder: (BuildContext ctxt, int index) { itemBuilder: (BuildContext ctxt, int index) {
return InkWell( return InkWell(
child: CardWithBgWidget( child: CardWithBgWidget(
@ -112,34 +113,37 @@ class _LabOrdersScreenState extends State<LabOrdersScreen> {
12, 12,
backgroundImage: NetworkImage( backgroundImage: NetworkImage(
patientsProv patientsProv
.patientLabResultOrdersList[index] .patientLabResultOrdersList[
index]
.doctorImageURL), .doctorImageURL),
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
), ),
Padding( Expanded(
padding: const EdgeInsets.fromLTRB( child: Padding(
8, 0, 0, 0), padding: const EdgeInsets.fromLTRB(
child: Column( 8, 0, 0, 0),
crossAxisAlignment: child: Column(
CrossAxisAlignment.start, crossAxisAlignment:
children: <Widget>[ CrossAxisAlignment.start,
AppText( children: <Widget>[
'${patientsProv.patientLabResultOrdersList[index].doctorName}', AppText(
fontSize: 2.5 * '${patientsProv.patientLabResultOrdersList[index].doctorName}',
SizeConfig.textMultiplier,
),
SizedBox(
height: 8,
),
AppText(
' ${patientsProv.patientLabResultOrdersList[index].clinicName}',
fontSize: 2.5 * fontSize: 2.5 *
SizeConfig SizeConfig.textMultiplier,
.textMultiplier), ),
SizedBox( SizedBox(
height: 8, height: 8,
), ),
], AppText(
' ${patientsProv.patientLabResultOrdersList[index].clinicName}',
fontSize: 2.5 *
SizeConfig
.textMultiplier),
SizedBox(
height: 8,
),
],
),
), ),
) )
], ],

@ -119,30 +119,32 @@ class _VitalSignScreenState extends State<VitalSignScreen> {
.doctorImageURL), .doctorImageURL),
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
), ),
Padding( Expanded(
padding: const EdgeInsets.fromLTRB( child: Padding(
8, 0, 0, 0), padding: const EdgeInsets.fromLTRB(
child: Column( 8, 0, 0, 0),
crossAxisAlignment: child: Column(
CrossAxisAlignment.start, crossAxisAlignment:
children: <Widget>[ CrossAxisAlignment.start,
AppText( children: <Widget>[
'${patientsProv.patientVitalSignList[index].doctorName}', AppText(
fontSize: 2.5 * '${patientsProv.patientVitalSignList[index].doctorName}',
SizeConfig.textMultiplier,
),
SizedBox(
height: 8,
),
AppText(
' ${patientsProv.patientVitalSignList[index].clinicName}',
fontSize: 2.5 * fontSize: 2.5 *
SizeConfig SizeConfig.textMultiplier,
.textMultiplier), ),
SizedBox( SizedBox(
height: 8, height: 8,
), ),
], AppText(
' ${patientsProv.patientVitalSignList[index].clinicName}',
fontSize: 2.5 *
SizeConfig
.textMultiplier),
SizedBox(
height: 8,
),
],
),
), ),
) )
], ],

Loading…
Cancel
Save