|
|
|
|
@ -1,7 +1,11 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/auth_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/doctor/profile_req_Model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patient_arrival/get_patient_arrival_list_request_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patient_model.dart';
|
|
|
|
|
@ -301,9 +305,26 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
: _isError
|
|
|
|
|
? DrAppEmbeddedError(error: error)
|
|
|
|
|
: lItems == null || lItems.length == 0
|
|
|
|
|
? DrAppEmbeddedError(
|
|
|
|
|
error:
|
|
|
|
|
TranslationBase.of(context).youDontHaveAnyPatient)
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
if(int.parse(patientType)==7)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 70),
|
|
|
|
|
child: ClinicList(clinicId: clinicId,onClinicChange: (newValue) {
|
|
|
|
|
clinicId = newValue;
|
|
|
|
|
changeClinic(newValue, context, model);
|
|
|
|
|
},),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: MediaQuery.of(context).size.height*0.35),
|
|
|
|
|
|
|
|
|
|
child: DrAppEmbeddedError(
|
|
|
|
|
error:
|
|
|
|
|
TranslationBase.of(context).youDontHaveAnyPatient),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
child: ListView(
|
|
|
|
|
@ -347,6 +368,11 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
if(int.parse(patientType)==7)
|
|
|
|
|
ClinicList(clinicId: clinicId,onClinicChange: (newValue) {
|
|
|
|
|
clinicId = newValue;
|
|
|
|
|
changeClinic(newValue, context, model);
|
|
|
|
|
},),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: MediaQuery.of(context)
|
|
|
|
|
|