|
|
|
@ -23,7 +23,6 @@ class MyReferralPatientScreen extends StatelessWidget {
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
|
|
|
|
|
appBarTitle: TranslationBase.of(context).referPatient,
|
|
|
|
|
body: model.pendingReferral == null || model.pendingReferral.length == 0
|
|
|
|
|
? Center(
|
|
|
|
@ -34,35 +33,13 @@ class MyReferralPatientScreen extends StatelessWidget {
|
|
|
|
|
)
|
|
|
|
|
: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 50),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
|
// height: MediaQuery.of(context).size.height,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 100),
|
|
|
|
|
// ProfileWelcomeWidget(
|
|
|
|
|
// AppText(
|
|
|
|
|
// authProvider.selectedClinicName != null
|
|
|
|
|
// ? authProvider.selectedClinicName
|
|
|
|
|
// : authProvider.doctorProfile.clinicDescription,
|
|
|
|
|
// fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// height: 100,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 16,
|
|
|
|
|
// ),
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// TranslationBase.of(context).myReferralPatient,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// fontSize: 16,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 50),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.pendingReferral.length,
|
|
|
|
|
(index) => InkWell(
|
|
|
|
@ -74,10 +51,11 @@ class MyReferralPatientScreen extends StatelessWidget {
|
|
|
|
|
},
|
|
|
|
|
child: PatientReferralItemWidget(
|
|
|
|
|
"${model.pendingReferral[index].patientID}",
|
|
|
|
|
patientInfo:model.pendingReferral[index] ,
|
|
|
|
|
patientInfo: model.pendingReferral[index],
|
|
|
|
|
patientName:
|
|
|
|
|
model.pendingReferral[index].patientName,
|
|
|
|
|
referralStatus: null,
|
|
|
|
|
referralStatus:
|
|
|
|
|
model.pendingReferral[index].referralStatus,
|
|
|
|
|
isReferredTo: false,
|
|
|
|
|
isSameBranch: model.pendingReferral[index]
|
|
|
|
|
.isReferralDoctorSameBranch,
|
|
|
|
|