|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/procedure/get_ordered_procedure_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/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
@ -16,7 +17,7 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
final String categoryName;
|
|
|
|
|
final int categoryID;
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String doctorName;
|
|
|
|
|
final int doctorID;
|
|
|
|
|
|
|
|
|
|
const ProcedureCard({
|
|
|
|
|
Key key,
|
|
|
|
|
@ -25,7 +26,7 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
this.categoryID,
|
|
|
|
|
this.categoryName,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.doctorName,
|
|
|
|
|
this.doctorID,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -241,22 +242,27 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),*/
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// entityList.remarks.toString() ?? '',
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// if (entityList.categoryID == 2 ||
|
|
|
|
|
// entityList.categoryID == 4 &&
|
|
|
|
|
// doctorName == entityList.doctorName)
|
|
|
|
|
// InkWell(
|
|
|
|
|
// child: Icon(DoctorApp.edit),
|
|
|
|
|
// onTap: onTap,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
entityList.remarks.toString() ?? '',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (entityList.categoryID == 2 ||
|
|
|
|
|
entityList.categoryID == 4 &&
|
|
|
|
|
doctorID == entityList.doctorID)
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Icon(DoctorApp.edit),
|
|
|
|
|
onTap: onTap,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
//onTap: onTap,
|
|
|
|
|
|