|
|
|
|
@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/core/viewModels/medical/ask_doctor_view_mod
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_expandable_notifier.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
@ -27,7 +28,7 @@ class DoctorResponse extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 65,
|
|
|
|
|
height: 16,
|
|
|
|
|
),
|
|
|
|
|
AppExpandableNotifier(
|
|
|
|
|
headerWidget: Padding(
|
|
|
|
|
@ -61,14 +62,18 @@ class DoctorResponse extends StatelessWidget {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
///go to page ViewDoctorResponsesPage
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ViewDoctorResponsesPage(
|
|
|
|
|
doctorResponse: doctor,
|
|
|
|
|
if (doctor.transactions != null && doctor.transactions.isNotEmpty) {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ViewDoctorResponsesPage(
|
|
|
|
|
doctorResponse: doctor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
Utils.showErrorToast("There are no doctor responses for this request.");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
@ -85,24 +90,20 @@ class DoctorResponse extends StatelessWidget {
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts('${doctor.doctorName}'),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
'${doctor.requestTypeDescription}'),
|
|
|
|
|
Texts('${doctor.requestTypeDescription}'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.fromLTRB(10.0, 0.0, 10.0, 0.0),
|
|
|
|
|
child: Icon(projectViewModel.isArabic
|
|
|
|
|
? Icons.arrow_forward_ios
|
|
|
|
|
: Icons.arrow_back_ios),
|
|
|
|
|
child: Icon(projectViewModel.isArabic ? Icons.arrow_back_ios : Icons.arrow_forward_ios),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -158,24 +159,20 @@ class DoctorResponse extends StatelessWidget {
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts('${doctor.doctorName}'),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
'${doctor.requestTypeDescription}'),
|
|
|
|
|
Texts('${doctor.requestTypeDescription}'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Icon(projectViewModel.isArabic
|
|
|
|
|
? Icons.arrow_forward_ios
|
|
|
|
|
: Icons.arrow_back_ios),
|
|
|
|
|
child: Icon(projectViewModel.isArabic ? Icons.arrow_back_ios : Icons.arrow_forward_ios),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|