|
|
|
|
@ -16,6 +16,7 @@ import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/PatientCard.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/clinic_list_dropdwon.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_button.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
@ -562,48 +563,74 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
// ),
|
|
|
|
|
Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// color: Color(0Xffffffff),
|
|
|
|
|
// borderRadius:
|
|
|
|
|
// BorderRadius.circular(20)),
|
|
|
|
|
child: (responseModelList.length > 0)
|
|
|
|
|
? Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: responseModelList
|
|
|
|
|
.map((PatiantInformtion
|
|
|
|
|
item) {
|
|
|
|
|
return PatientCard(
|
|
|
|
|
patientInfo: item,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(
|
|
|
|
|
PATIENTS_PROFILE,
|
|
|
|
|
arguments: {
|
|
|
|
|
"patient": item,
|
|
|
|
|
"patientType":
|
|
|
|
|
patientType,
|
|
|
|
|
"from": patient
|
|
|
|
|
.getFrom,
|
|
|
|
|
"to":
|
|
|
|
|
patient.getTo,
|
|
|
|
|
"isSearch":
|
|
|
|
|
isSearch,
|
|
|
|
|
"arrivalType":
|
|
|
|
|
arrivalType,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}).toList(),
|
|
|
|
|
)
|
|
|
|
|
: Center(
|
|
|
|
|
child: DrAppEmbeddedError(
|
|
|
|
|
error: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.youDontHaveAnyPatient),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// color: Color(0Xffffffff),
|
|
|
|
|
// borderRadius:
|
|
|
|
|
// BorderRadius.circular(20)),
|
|
|
|
|
child: (responseModelList.length >
|
|
|
|
|
0)
|
|
|
|
|
? Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: responseModelList
|
|
|
|
|
.map((PatiantInformtion
|
|
|
|
|
item) {
|
|
|
|
|
return PatientCard(
|
|
|
|
|
patientInfo: item,
|
|
|
|
|
patientType:
|
|
|
|
|
patientType,
|
|
|
|
|
arrivalType:
|
|
|
|
|
arrivalType,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(
|
|
|
|
|
PATIENTS_PROFILE,
|
|
|
|
|
arguments: {
|
|
|
|
|
"patient": item,
|
|
|
|
|
"patientType":
|
|
|
|
|
patientType,
|
|
|
|
|
"from": patient
|
|
|
|
|
.getFrom,
|
|
|
|
|
"to": patient
|
|
|
|
|
.getTo,
|
|
|
|
|
"isSearch":
|
|
|
|
|
isSearch,
|
|
|
|
|
"arrivalType":
|
|
|
|
|
arrivalType,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}).toList(),
|
|
|
|
|
)
|
|
|
|
|
: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment
|
|
|
|
|
.center,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/no-data.png'),
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets
|
|
|
|
|
.all(8.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.youDontHaveAnyPatient),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
// : Center(
|
|
|
|
|
// child: DrAppEmbeddedError(
|
|
|
|
|
// error: TranslationBase.of(
|
|
|
|
|
// context)
|
|
|
|
|
// .youDontHaveAnyPatient),
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|