WD: no chief complain view added and hardcoded string removed.

flutter_3.16.0_zoom^2
taha.alam 1 year ago
parent fbd0143d50
commit ed50e72426

@ -28,7 +28,7 @@ class ListOfExamination extends StatelessWidget {
///todo handle the event as per the actiion ///todo handle the event as per the actiion
/// the action is [SoapDetailItemActions] /// the action is [SoapDetailItemActions]
}, },
status: 'active', status: TranslationBase.of(context).active,
showActions: false, showActions: false,
), ),
separatorBuilder: (_, __) => Divider(), separatorBuilder: (_, __) => Divider(),

@ -6,6 +6,7 @@ import 'package:doctor_app_flutter/screens/patients/profile/soap_update/subjecti
import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/AddChiefComplaints.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/AddChiefComplaints.dart';
import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_soap_item.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_soap_item.dart';
import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/complaint_items.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/complaint_items.dart';
import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart';
import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart'; import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart';
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart'; import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart'; import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
@ -50,24 +51,27 @@ class UpdateChiefComplaints extends StatelessWidget {
title: TranslationBase.of(context).addChiefComplaint, title: TranslationBase.of(context).addChiefComplaint,
), ),
SizedBox(height: 16), SizedBox(height: 16),
Container(width: MediaQuery.of(context).size.width, if (model.getChiefComplaintListVidaPlus.isEmpty) ...{
height: 40, SizedBox(
child: width: MediaQuery.sizeOf(context).width,
ListView.builder( child: EmptyComplaints(),
shrinkWrap: true, )
scrollDirection: Axis.horizontal, } else ...{
itemCount: model.getChiefComplaintListVidaPlus.length, Container(
itemBuilder: (_, index) => width: MediaQuery.of(context).size.width,
ComplaintItems( height: 40,
complaint: model.getChiefComplaintListVidaPlus[index]!, child: ListView.builder(
onCrossClicked: (complaints) { shrinkWrap: true,
scrollDirection: Axis.horizontal,
}) itemCount:
model.getChiefComplaintListVidaPlus.length,
)), itemBuilder: (_, index) => ComplaintItems(
complaint: model
]), .getChiefComplaintListVidaPlus[index]!,
)); onCrossClicked: (complaints) {}))),
}
]),
));
} }
getChiefComplaints(SOAPViewModel model){ getChiefComplaints(SOAPViewModel model){
model.getChiefComplaint(patientInfo); model.getChiefComplaint(patientInfo);

@ -16,6 +16,7 @@ class EmptyComplaints extends StatelessWidget{
TranslationBase.of(context).noComplaintsFound, TranslationBase.of(context).noComplaintsFound,
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
textAlign: TextAlign.center,
color: Color(0xFFADADAD), color: Color(0xFFADADAD),
) )
], ],

Loading…
Cancel
Save