Fixing the comments

merge-requests/982/head
RoaaGhali98 4 years ago
parent dfc792ce64
commit 31cf229763

@ -61,8 +61,8 @@ const String VITAL_SIGN_DETAILS = 'patients/vital-sign-details';
const String CREATE_EPISODE = 'patients/create-episode';
const String UPDATE_EPISODE = 'patients/update-episode';
const String PATIENT_ADMISSION_REQUEST = 'patients/admission_request';
const String PATIENT_ADMISSION_REQUEST_2 = 'patients/admission_request-second';
const String PATIENT_ADMISSION_REQUEST_3 = 'patients/admission_request-third';
const String PATIENT_ADMISSION_REQUEST_2 = 'patients/admission_request_second';
const String PATIENT_ADMISSION_REQUEST_3 = 'patients/admission_request_third';
const String PATIENT_MEDICAL_REPORT = 'patients/medical-report';
const String PATIENT_MEDICAL_REPORT_INSERT = 'patients/medical-report-insert';
const String PATIENT_MEDICAL_REPORT_DETAIL = 'patients/medical-report-detail';

@ -372,7 +372,7 @@ class _AdmissionRequestThirdScreenState
],
),
),
bottomSheet: BottomSheetDialogButton(
bottomSheet: CustomBottomSheetContainer(
label: "${TranslationBase.of(context).next}",
onTap: () async {
await locator<AnalyticsService>().logEvent(

@ -567,7 +567,7 @@ class _PatientMakeInPatientReferralScreenState extends State<PatientMakeInPatien
? Container(
height: 0,
)
:BottomSheetDialogButton(
:CustomBottomSheetContainer(
label: "${TranslationBase.of(context).refer}",
onTap: () async {
setState(() {

@ -159,7 +159,7 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
],
),
if (model.patientReferral.length == 0)
BottomSheetDialogButton(
CustomBottomSheetContainer(
label: "${TranslationBase.of(context).refer}",
onTap: () async {
await locator<AnalyticsService>().logEvent(

@ -399,7 +399,7 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: (widget.isUpdate
? 'Update Assessment Details'
: 'Add Assessment Details'),

@ -102,7 +102,7 @@ class _AddExaminationPageState extends State<AddExaminationPage> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: "${TranslationBase.of(context).addExamination}",
onTap: () {
widget

@ -118,7 +118,7 @@ class _AddAllergiesState extends State<AddAllergies> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: TranslationBase.of(context).addAllergies,
onTap: () {
setState(() {

@ -165,7 +165,7 @@ class _AddHistoryDialogState extends State<AddHistoryDialog> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: TranslationBase.of(context).addSelectedHistories,
onTap: () {
widget.addSelectedHistories();

@ -424,7 +424,7 @@ class _AddMedicationState extends State<AddMedication> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: TranslationBase.of(context).addMedication,
onTap: () {
setState(() {

@ -84,7 +84,7 @@ class _AddDrugWidgetState extends State<AddDrugWidget> {
? Container(
height: 0,
)
: BottomSheetDialogButton(
: CustomBottomSheetContainer(
label: TranslationBase.of(context).addMedication,
onTap: () async {
GifLoaderDialogUtils.showMyDialog(context);

@ -83,7 +83,7 @@ class _AddFavouriteProcedureState extends State<AddFavouriteProcedure> {
.youDoNotHaveFavoritePrescription,
),
]),
bottomSheet: BottomSheetDialogButton(
bottomSheet: CustomBottomSheetContainer(
label: widget.procedureType.getAddButtonTitle(context) ??
TranslationBase.of(context).addSelectedProcedures,
onTap: () async {

@ -5,13 +5,13 @@ import 'package:hexcolor/hexcolor.dart';
import '../../config/config.dart';
class BottomSheetDialogButton extends StatelessWidget {
class CustomBottomSheetContainer extends StatelessWidget {
final Function onTap;
final String label;
double headerHeight = SizeConfig.heightMultiplier * 12;
BottomSheetDialogButton({Key key, this.onTap, this.label}) : super(key: key);
CustomBottomSheetContainer({Key key, this.onTap, this.label}) : super(key: key);
@override
Widget build(BuildContext context) {

Loading…
Cancel
Save