WD: date time doctor name and patient condition displayed on ProgressNoteItem.dart
parent
707a98cb18
commit
1353f48f7e
@ -1,20 +1,31 @@
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/progress_note/GetGetProgressNoteResModel.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/progress_note/progress_note.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
|
||||
import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/plan/widget/ProgressNoteItem.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ListOfNotes extends StatelessWidget{
|
||||
class ListOfNotes extends StatelessWidget {
|
||||
final List<ProgressNote> notes;
|
||||
final SOAPViewModel model;
|
||||
|
||||
const ListOfNotes({super.key, required this.notes, required this.model});
|
||||
|
||||
const ListOfNotes({super.key, required this.notes});
|
||||
@override
|
||||
Widget build(BuildContext context) => Flexible(
|
||||
child: ListView.separated(
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
shrinkWrap: true,
|
||||
itemBuilder: (_, index) =>ProgressNoteItem(type: notes[index].progressNotesTypesName ?? '', speciality: notes[index].specialityName ?? '', Notes: notes[index].progressNote?? ''),
|
||||
itemBuilder: (_, index) => ProgressNoteItem(
|
||||
type: notes[index].progressNotesTypesName ?? '',
|
||||
speciality: notes[index].specialityName ?? '',
|
||||
Notes: notes[index].progressNote ?? '',
|
||||
patientCondition: model.getPatientConditionValue(
|
||||
notes[index].patientCondition ?? '') ??
|
||||
'',
|
||||
doctorName: notes[index].userFullName ?? '',
|
||||
modifiedOn: notes[index].modifiedOn ?? '',
|
||||
),
|
||||
separatorBuilder: (_, __) => Divider(),
|
||||
itemCount: notes.length),
|
||||
);
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue