From a623f5418eccea15fc23297139f73f3c0965529a Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Thu, 16 Dec 2021 09:31:57 +0200 Subject: [PATCH] fix issues --- lib/screens/auth/login_screen.dart | 14 +- .../auth/verification_methods_screen.dart | 88 +- lib/screens/base/base_view.dart | 10 +- .../doctor_replay/all_doctor_questions.dart | 5 +- .../doctor_replay/doctor_repaly_chat.dart | 12 +- .../doctor_replay/doctor_reply_screen.dart | 4 +- .../doctor_replay/doctor_reply_widget.dart | 30 +- .../not_replaied_doctor_questions.dart | 2 +- .../doctor/patient_arrival_screen.dart | 5 +- .../home/dashboard_referral_patient.dart | 8 +- .../home/dashboard_slider-item-widget.dart | 14 +- lib/screens/home/home_page_card.dart | 20 +- lib/screens/home/home_patient_card.dart | 18 +- lib/screens/home/label.dart | 11 +- .../live-care_transfer_to_admin.dart | 6 +- .../live_care/live_care_patient_screen.dart | 8 +- lib/screens/live_care/panding_list.dart | 6 +- lib/screens/live_care/video_call.dart | 21 +- .../medical-file/health_summary_page.dart | 169 +- .../medicine/medicine_search_screen.dart | 11 +- .../medicine/pharmacies_list_screen.dart | 11 +- .../patient_sick_leave_screen.dart | 4 +- .../patients/In_patient/InPatientHeader.dart | 2 +- lib/screens/patients/In_patient/NoData.dart | 2 +- .../In_patient/in_patient_list_page.dart | 14 +- .../In_patient/list_of_all_in_patient.dart | 10 +- .../In_patient/list_of_my_inpatient.dart | 11 +- .../insurance_approval_screen_patient.dart | 2 +- .../out_patient/filter_date_page.dart | 34 +- lib/util/NotificationPermissionUtils.dart | 2 +- lib/util/date-utils.dart | 4 +- lib/util/dr_app_shared_pref.dart | 4 +- lib/util/extenstions.dart | 7 +- lib/util/helpers.dart | 27 +- lib/util/translations_delegate_base.dart | 1786 +++++++---------- lib/widgets/auth/method_type_card.dart | 10 +- lib/widgets/auth/sms-popup.dart | 36 +- .../auth/verification_methods_list.dart | 34 +- lib/widgets/charts/app_line_chart.dart | 6 +- lib/widgets/charts/app_time_series_chart.dart | 8 +- lib/widgets/dashboard/guage_chart.dart | 2 +- lib/widgets/dashboard/out_patient_stack.dart | 4 +- lib/widgets/dashboard/row_count.dart | 2 +- .../data_display/list/custom_Item.dart | 16 +- .../data_display/list/flexible_container.dart | 6 +- lib/widgets/dialog/AskPermissionDialog.dart | 2 +- lib/widgets/doctor/lab_result_widget.dart | 10 +- .../doctor/my_referral_patient_widget.dart | 20 +- lib/widgets/doctor/my_schedule_widget.dart | 17 +- .../medicine/medicine_item_widget.dart | 10 +- 50 files changed, 1100 insertions(+), 1465 deletions(-) diff --git a/lib/screens/auth/login_screen.dart b/lib/screens/auth/login_screen.dart index 78c68256..663f95db 100644 --- a/lib/screens/auth/login_screen.dart +++ b/lib/screens/auth/login_screen.dart @@ -23,7 +23,7 @@ class LoginScreen extends StatefulWidget { } class _LoginScreenState extends State { - String platformImei; + late String platformImei; bool allowCallApi = true; //TODO change AppTextFormField to AppTextFormFieldCustom @@ -34,7 +34,7 @@ class _LoginScreenState extends State { List projectsList = []; FocusNode focusPass = FocusNode(); FocusNode focusProject = FocusNode(); - AuthenticationViewModel authenticationViewModel; + late AuthenticationViewModel authenticationViewModel; @override Widget build(BuildContext context) { @@ -224,8 +224,8 @@ class _LoginScreenState extends State { login( context, ) async { - if (loginFormKey.currentState.validate()) { - loginFormKey.currentState.save(); + if (loginFormKey.currentState!.validate()) { + loginFormKey.currentState!.save(); GifLoaderDialogUtils.showMyDialog(context); await authenticationViewModel.login(authenticationViewModel.userInfo); if (authenticationViewModel.state == ViewState.ErrorLocal) { @@ -251,10 +251,10 @@ class _LoginScreenState extends State { setState(() { authenticationViewModel.userInfo.projectID = projectsList[index].facilityId; - projectIdController.text = projectsList[index].facilityName; + projectIdController.text = projectsList[index].facilityName!; }); - primaryFocus.unfocus(); + primaryFocus!.unfocus(); } String memberID = ""; @@ -268,7 +268,7 @@ class _LoginScreenState extends State { setState(() { authenticationViewModel.userInfo.projectID = projectsList[0].facilityId; - projectIdController.text = projectsList[0].facilityName; + projectIdController.text = projectsList[0].facilityName!; }); } } diff --git a/lib/screens/auth/verification_methods_screen.dart b/lib/screens/auth/verification_methods_screen.dart index e1f2f49b..ce3f7a5d 100644 --- a/lib/screens/auth/verification_methods_screen.dart +++ b/lib/screens/auth/verification_methods_screen.dart @@ -41,12 +41,12 @@ class VerificationMethodsScreen extends StatefulWidget { } class _VerificationMethodsScreenState extends State { - ProjectViewModel projectsProvider; + late ProjectViewModel projectsProvider; bool isMoreOption = false; bool onlySMSBox = false; - AuthMethodTypes fingerPrintBefore; - AuthMethodTypes selectedOption; - AuthenticationViewModel authenticationViewModel; + AuthMethodTypes? fingerPrintBefore; + late AuthMethodTypes selectedOption; + late AuthenticationViewModel authenticationViewModel; @override Widget build(BuildContext context) { @@ -103,7 +103,7 @@ class _VerificationMethodsScreenState extends State { ), AppText( Helpers.convertToTitleCase( - authenticationViewModel.user.doctorName), + authenticationViewModel.user!.doctorName??''), fontSize: SizeConfig .getTextMultiplierBasedOnWidth() * 6, @@ -187,7 +187,7 @@ class _VerificationMethodsScreenState extends State { text: authenticationViewModel .getType( authenticationViewModel - .user + .user! .logInTypeID, context), style: TextStyle( @@ -217,25 +217,25 @@ class _VerificationMethodsScreenState extends State { children: [ AppText( authenticationViewModel - .user.editedOn != + .user!.editedOn != null ? AppDateUtils .getDayMonthYearDateFormatted( AppDateUtils .convertStringToDate( authenticationViewModel - .user - .editedOn), + .user! + .editedOn!), isMonthShort: true) : authenticationViewModel - .user.createdOn != + .user!.createdOn! != null ? AppDateUtils.getDayMonthYearDateFormatted( AppDateUtils .convertStringToDate( authenticationViewModel - .user - .createdOn), + .user! + .createdOn!), isMonthShort: true) : '--', textAlign: TextAlign.right, @@ -248,21 +248,21 @@ class _VerificationMethodsScreenState extends State { ), AppText( authenticationViewModel - .user.editedOn != + .user!.editedOn! != null ? AppDateUtils.getHour(AppDateUtils .convertStringToDate( authenticationViewModel - .user.editedOn)) + .user!.editedOn!)) : authenticationViewModel - .user.createdOn != + .user!.createdOn! != null ? AppDateUtils.getHour( AppDateUtils .convertStringToDate( authenticationViewModel - .user - .createdOn)) + .user! + .createdOn!)) : '--', textAlign: TextAlign.right, fontSize: SizeConfig @@ -355,8 +355,8 @@ class _VerificationMethodsScreenState extends State { SelectedAuthMethodTypesService .getMethodsTypeService( authenticationViewModel - .user - .logInTypeID), + .user! + .logInTypeID!), authenticateUser: (AuthMethodTypes authMethodType, @@ -490,15 +490,12 @@ class _VerificationMethodsScreenState extends State { ); } - sendActivationCodeByOtpNotificationType( - AuthMethodTypes authMethodType) async { - if (authMethodType == AuthMethodTypes.SMS || - authMethodType == AuthMethodTypes.WhatsApp) { + sendActivationCodeByOtpNotificationType(AuthMethodTypes authMethodType) async { + if (authMethodType == AuthMethodTypes.SMS || authMethodType == AuthMethodTypes.WhatsApp) { GifLoaderDialogUtils.showMyDialog(context); await authenticationViewModel.sendActivationCodeForDoctorApp( - authMethodType: authMethodType, - password: authenticationViewModel.userInfo.password); + authMethodType: authMethodType, password: authenticationViewModel.userInfo.password!); if (authenticationViewModel.state == ViewState.ErrorLocal) { Helpers.showErrorToast(authenticationViewModel.error); GifLoaderDialogUtils.hideDialog(context); @@ -523,12 +520,9 @@ class _VerificationMethodsScreenState extends State { GifLoaderDialogUtils.hideDialog(context); Helpers.showErrorToast(authenticationViewModel.error); } else { - await sharedPref.setString( - TOKEN, - authenticationViewModel - .activationCodeVerificationScreenRes.logInTokenID); - if (authMethodType == AuthMethodTypes.SMS || - authMethodType == AuthMethodTypes.WhatsApp) { + await sharedPref.setString(TOKEN, + authenticationViewModel.activationCodeVerificationScreenRes.logInTokenID!); + if (authMethodType == AuthMethodTypes.SMS || authMethodType == AuthMethodTypes.WhatsApp) { GifLoaderDialogUtils.hideDialog(context); this.startSMSService(authMethodType, isSilentLogin: true); } else { @@ -542,8 +536,7 @@ class _VerificationMethodsScreenState extends State { authMethodType == AuthMethodTypes.FaceID) { fingerPrintBefore = authMethodType; } - this.selectedOption = - fingerPrintBefore != null ? fingerPrintBefore : authMethodType; + this.selectedOption = (fingerPrintBefore != null ? fingerPrintBefore : authMethodType)!; switch (authMethodType) { case AuthMethodTypes.SMS: @@ -578,8 +571,8 @@ class _VerificationMethodsScreenState extends State { context, type, authenticationViewModel.loggedUser != null - ? authenticationViewModel.loggedUser.mobileNumber - : authenticationViewModel.user.mobile, + ? authenticationViewModel.loggedUser!.mobileNumber + : authenticationViewModel.user!.mobile, (value) { showDialog( context: context, @@ -601,11 +594,9 @@ class _VerificationMethodsScreenState extends State { await authenticationViewModel.showIOSAuthMessages(); if (!mounted) return; if (authenticationViewModel.user != null && - (SelectedAuthMethodTypesService.getMethodsTypeService( - authenticationViewModel.user.logInTypeID) == + (SelectedAuthMethodTypesService.getMethodsTypeService(authenticationViewModel.user!.logInTypeID!) == AuthMethodTypes.Fingerprint || - SelectedAuthMethodTypesService.getMethodsTypeService( - authenticationViewModel.user.logInTypeID) == + SelectedAuthMethodTypesService.getMethodsTypeService(authenticationViewModel.user!.logInTypeID!) == AuthMethodTypes.FaceID)) { this.sendActivationCode(authMethodTypes); } else { @@ -616,19 +607,22 @@ class _VerificationMethodsScreenState extends State { } } - checkActivationCode({String value, bool isSilentLogin = false}) async { - await authenticationViewModel.checkActivationCodeForDoctorApp( - activationCode: value, isSilentLogin: isSilentLogin); + checkActivationCode({String? value,bool isSilentLogin = false}) async { + await authenticationViewModel.checkActivationCodeForDoctorApp(activationCode: value!,isSilentLogin: isSilentLogin); if (authenticationViewModel.state == ViewState.ErrorLocal) { Navigator.pop(context); Helpers.showErrorToast(authenticationViewModel.error); } else { await authenticationViewModel.onCheckActivationCodeSuccess(); - if (value != null) { - if (Navigator.canPop(context)) Navigator.pop(context); - } - if (Navigator.canPop(context)) Navigator.pop(context); - navigateToLandingPage(); + if(value !=null){ + if(Navigator.canPop(context)) + Navigator.pop(context); + } + if(Navigator.canPop(context)) + Navigator.pop(context); + navigateToLandingPage(); + + } } diff --git a/lib/screens/base/base_view.dart b/lib/screens/base/base_view.dart index 7a5c93e6..ceeae382 100644 --- a/lib/screens/base/base_view.dart +++ b/lib/screens/base/base_view.dart @@ -5,11 +5,11 @@ import 'package:provider/provider.dart'; import '../../locator.dart'; class BaseView extends StatefulWidget { - final Widget Function(BuildContext context, T model, Widget child) builder; - final Function(T) onModelReady; + final Widget Function(BuildContext context, T model, Widget? child) builder; + final Function(T)? onModelReady; BaseView({ - this.builder, + required this.builder, this.onModelReady, }); @@ -18,14 +18,14 @@ class BaseView extends StatefulWidget { } class _BaseViewState extends State> { - T model = locator(); + T? model = locator(); bool isLogin = false; @override void initState() { if (widget.onModelReady != null) { - widget.onModelReady(model); + widget.onModelReady!(model!); } super.initState(); diff --git a/lib/screens/doctor/doctor_replay/all_doctor_questions.dart b/lib/screens/doctor/doctor_replay/all_doctor_questions.dart index 8295ca39..1f16c8df 100644 --- a/lib/screens/doctor/doctor_replay/all_doctor_questions.dart +++ b/lib/screens/doctor/doctor_replay/all_doctor_questions.dart @@ -12,9 +12,8 @@ import 'package:flutter/material.dart'; import 'doctor_repaly_chat.dart'; class AllDoctorQuestions extends StatefulWidget { - final Function changeCurrentTab; - const AllDoctorQuestions({Key ? key, this.changeCurrentTab}) : super(key: key); + const AllDoctorQuestions({Key? key}) : super(key: key); @override _AllDoctorQuestionsState createState() => _AllDoctorQuestionsState(); @@ -82,7 +81,7 @@ class _AllDoctorQuestionsState extends State { }); model.getDoctorReply(pageIndex: pageIndex); } - return; + return false; }, ), ), diff --git a/lib/screens/doctor/doctor_replay/doctor_repaly_chat.dart b/lib/screens/doctor/doctor_replay/doctor_repaly_chat.dart index 9de8befd..df948a8b 100644 --- a/lib/screens/doctor/doctor_replay/doctor_repaly_chat.dart +++ b/lib/screens/doctor/doctor_replay/doctor_repaly_chat.dart @@ -25,7 +25,7 @@ class DoctorReplayChat extends StatefulWidget { final DoctorReplayViewModel previousModel; bool showMsgBox = false; DoctorReplayChat( - {Key ? key, this.reply, this.previousModel, + {Key? key, required this.reply, required this.previousModel, }); @override @@ -38,8 +38,8 @@ class _DoctorReplayChatState extends State { @override Widget build(BuildContext context) { - if(widget.reply.doctorResponse.isNotEmpty){ - msgController.text = widget.reply.doctorResponse; + if(widget.reply.doctorResponse!.isNotEmpty){ + msgController.text = widget.reply.doctorResponse!; } else { widget.showMsgBox = true; @@ -173,7 +173,7 @@ class _DoctorReplayChatState extends State { margin: EdgeInsets.symmetric(horizontal: 0), child: InkWell( onTap: () { - launch("tel://" +widget.reply.mobileNumber); + launch("tel://" +widget.reply.mobileNumber!); }, child: Icon( Icons.phone, @@ -195,7 +195,7 @@ class _DoctorReplayChatState extends State { fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8, ), AppText( - widget.reply.createdOn !=null?AppDateUtils.getHour(AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn)):AppDateUtils.getHour(DateTime.now()), + widget.reply.createdOn !=null?AppDateUtils.getHour(AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!)):AppDateUtils.getHour(DateTime.now()), fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *2.8, fontFamily: 'Poppins', color: Colors.white, @@ -237,7 +237,7 @@ class _DoctorReplayChatState extends State { SizedBox(height: 30,), SizedBox(height: 30,), - if(widget.reply.doctorResponse != null && widget.reply.doctorResponse.isNotEmpty) + if(widget.reply.doctorResponse != null && widget.reply.doctorResponse!.isNotEmpty) Align( alignment: Alignment.centerRight, child: Container( diff --git a/lib/screens/doctor/doctor_replay/doctor_reply_screen.dart b/lib/screens/doctor/doctor_replay/doctor_reply_screen.dart index f9596fc6..45dc50bf 100644 --- a/lib/screens/doctor/doctor_replay/doctor_reply_screen.dart +++ b/lib/screens/doctor/doctor_replay/doctor_reply_screen.dart @@ -30,7 +30,7 @@ import 'not_replaied_Doctor_Questions.dart'; class DoctorReplyScreen extends StatefulWidget { final Function changeCurrentTab; - const DoctorReplyScreen({Key ? key, this.changeCurrentTab}) : super(key: key); + const DoctorReplyScreen({Key? key, required this.changeCurrentTab}) : super(key: key); @override _DoctorReplyScreenState createState() => _DoctorReplyScreenState(); @@ -38,7 +38,7 @@ class DoctorReplyScreen extends StatefulWidget { class _DoctorReplyScreenState extends State with SingleTickerProviderStateMixin { - TabController _tabController; + late TabController _tabController; int _activeTab = 0; int pageIndex = 1; diff --git a/lib/screens/doctor/doctor_replay/doctor_reply_widget.dart b/lib/screens/doctor/doctor_replay/doctor_reply_widget.dart index 7e9a1603..5207d701 100644 --- a/lib/screens/doctor/doctor_replay/doctor_reply_widget.dart +++ b/lib/screens/doctor/doctor_replay/doctor_reply_widget.dart @@ -18,7 +18,7 @@ class DoctorReplyWidget extends StatefulWidget { final ListGtMyPatientsQuestions reply; bool isShowMore = false; - DoctorReplyWidget({Key ? key, this.reply}); + DoctorReplyWidget({Key? key, required this.reply}); @override _DoctorReplyWidgetState createState() => _DoctorReplyWidgetState(); @@ -88,35 +88,21 @@ class _DoctorReplyWidgetState extends State { crossAxisAlignment: CrossAxisAlignment.end, children: [ AppText( - AppDateUtils.getDateTimeFromServerFormat( - widget.reply.createdOn) - .day - .toString() + + AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!).day.toString() + " " + AppDateUtils.getMonth( - AppDateUtils.getDateTimeFromServerFormat( - widget.reply.createdOn) - .month) + AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!).month) .toString() .substring(0, 3) + ' ' + - AppDateUtils.getDateTimeFromServerFormat( - widget.reply.createdOn) - .year - .toString(), + AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!).year.toString(), fontFamily: 'Poppins', fontWeight: FontWeight.w600, ), AppText( - AppDateUtils.getDateTimeFromServerFormat( - widget.reply.createdOn) - .hour - .toString() + + AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!).hour.toString() + ":" + - AppDateUtils.getDateTimeFromServerFormat( - widget.reply.createdOn) - .minute - .toString(), + AppDateUtils.getDateTimeFromServerFormat(widget.reply.createdOn!).minute.toString(), fontFamily: 'Poppins', fontWeight: FontWeight.w600, ) @@ -139,7 +125,7 @@ class _DoctorReplyWidgetState extends State { margin: EdgeInsets.symmetric(horizontal: 4), child: InkWell( onTap: () { - launch("tel://" + widget.reply.mobileNumber); + launch("tel://" + widget.reply.mobileNumber!); }, child: Icon( Icons.phone, @@ -208,7 +194,7 @@ class _DoctorReplyWidgetState extends State { label: TranslationBase.of(context).age + " : ", isCopyable:false, value: - "${AppDateUtils.getAgeByBirthday(widget.reply.dateofBirth, context)}", + "${AppDateUtils.getAgeByBirthday(widget.reply.dateofBirth!, context)}", ), SizedBox( height: 8, diff --git a/lib/screens/doctor/doctor_replay/not_replaied_doctor_questions.dart b/lib/screens/doctor/doctor_replay/not_replaied_doctor_questions.dart index 1f195a24..39dd1bf7 100644 --- a/lib/screens/doctor/doctor_replay/not_replaied_doctor_questions.dart +++ b/lib/screens/doctor/doctor_replay/not_replaied_doctor_questions.dart @@ -90,7 +90,7 @@ class _NotRepliedDoctorQuestionsState extends State { }); model.getDoctorReply(pageIndex: pageIndex, isGettingNotReply: true); } - return; + return false; }, ), ), diff --git a/lib/screens/doctor/patient_arrival_screen.dart b/lib/screens/doctor/patient_arrival_screen.dart index 5ef8b617..04655ca2 100644 --- a/lib/screens/doctor/patient_arrival_screen.dart +++ b/lib/screens/doctor/patient_arrival_screen.dart @@ -14,9 +14,8 @@ class PatientArrivalScreen extends StatefulWidget { _PatientArrivalScreen createState() => _PatientArrivalScreen(); } -class _PatientArrivalScreen extends State - with SingleTickerProviderStateMixin { - TabController _tabController; +class _PatientArrivalScreen extends State with SingleTickerProviderStateMixin { + late TabController _tabController; var _patientSearchFormValues = PatientModel( FirstName: "0", MiddleName: "0", diff --git a/lib/screens/home/dashboard_referral_patient.dart b/lib/screens/home/dashboard_referral_patient.dart index 308aad15..58673ed6 100644 --- a/lib/screens/home/dashboard_referral_patient.dart +++ b/lib/screens/home/dashboard_referral_patient.dart @@ -13,11 +13,11 @@ import 'package:flutter/material.dart'; import 'label.dart'; class DashboardReferralPatient extends StatelessWidget { - final List dashboardItemList; - final double height; - final DashboardViewModel model; + final List? dashboardItemList; + final double? height; + final DashboardViewModel? model; - const DashboardReferralPatient({Key ? key, this.dashboardItemList, this.height, this.model}) : super(key: key); + const DashboardReferralPatient({Key? key, this.dashboardItemList, this.height, this.model}) : super(key: key); @override Widget build(BuildContext context) { return Container( diff --git a/lib/screens/home/dashboard_slider-item-widget.dart b/lib/screens/home/dashboard_slider-item-widget.dart index 9005b816..62490bda 100644 --- a/lib/screens/home/dashboard_slider-item-widget.dart +++ b/lib/screens/home/dashboard_slider-item-widget.dart @@ -19,13 +19,9 @@ class DashboardSliderItemWidget extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.start, children: [ - Container( - margin: EdgeInsets.symmetric(horizontal: SizeConfig.widthMultiplier *1), - - child: Label( - firstLine: Helpers.getLabelFromKPI(item.kPIName), - secondLine: Helpers.getNameFromKPI(item.kPIName), - ), + Label( + firstLine: Helpers.getLabelFromKPI(item.kPIName!), + secondLine: Helpers.getNameFromKPI(item.kPIName!), ), ], ), @@ -40,8 +36,8 @@ class DashboardSliderItemWidget extends StatelessWidget { : 13), child: ListView( scrollDirection: Axis.horizontal, - children: List.generate(item.summaryoptions.length, (int index) { - return GetActivityCard(item.summaryoptions[index]); + children: List.generate(item.summaryoptions!.length, (int index) { + return GetActivityCard(item.summaryoptions![index]); }))) ], ); diff --git a/lib/screens/home/home_page_card.dart b/lib/screens/home/home_page_card.dart index 94466dee..41737f25 100644 --- a/lib/screens/home/home_page_card.dart +++ b/lib/screens/home/home_page_card.dart @@ -5,24 +5,22 @@ import 'package:hexcolor/hexcolor.dart'; class HomePageCard extends StatelessWidget { const HomePageCard( {this.hasBorder = false, - this.imageName, - this.child, - this.onTap, - Key ? key, - this.color, - this.opacity = 0.4, - this.margin, this.width, this.gradient}) + this.imageName, + required this.child, + required this.onTap, + Key? key, + required this.color, + this.opacity = 0.4, + required this.margin, this.width}) : super(key: key); final bool hasBorder; - final String imageName; + final String? imageName; final Widget child; final GestureTapCallback onTap; final Color color; final double opacity; - final double width; + final double? width; final EdgeInsets margin; - final LinearGradient gradient; - @override Widget build(BuildContext context) { return InkWell( diff --git a/lib/screens/home/home_patient_card.dart b/lib/screens/home/home_patient_card.dart index 0180fc14..f935977a 100644 --- a/lib/screens/home/home_patient_card.dart +++ b/lib/screens/home/home_patient_card.dart @@ -6,7 +6,7 @@ import 'package:flutter/material.dart'; class HomePatientCard extends StatelessWidget { final Color backgroundColor; final IconData cardIcon; - final String cardIconImage; + final String? cardIconImage; final Color backgroundIconColor; final String text; final Color textColor; @@ -15,14 +15,14 @@ class HomePatientCard extends StatelessWidget { final LinearGradient gradient; HomePatientCard({ - this.backgroundColor, - this.backgroundIconColor, - this.cardIcon, - this.cardIconImage, - this.text, - this.textColor, - this.onTap, - this.iconSize = 30, this.gradient, + required this.backgroundColor, + required this.backgroundIconColor, + required this.cardIcon, + this.cardIconImage, + required this.text, + required this.textColor, + required this.onTap, + this.iconSize = 30, required this.gradient, }); @override diff --git a/lib/screens/home/label.dart b/lib/screens/home/label.dart index 74f62b6f..db5a29fb 100644 --- a/lib/screens/home/label.dart +++ b/lib/screens/home/label.dart @@ -3,15 +3,16 @@ import 'package:doctor_app_flutter/config/size_config.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:flutter/material.dart'; +// ignore: must_be_immutable class Label extends StatelessWidget { Label({ - Key ? key, this.firstLine, this.secondLine, this.color= const Color(0xFF2E303A), this.secondLineFontSize, this.firstLineFontSize, + Key? key, this.firstLine, this.secondLine, this.color= const Color(0xFF2E303A), this.secondLineFontSize, this.firstLineFontSize, }) : super(key: key); - final String firstLine; - final String secondLine; + final String? firstLine; + final String? secondLine; Color color; - final double secondLineFontSize; - final double firstLineFontSize; + final double? secondLineFontSize; + final double? firstLineFontSize; @override Widget build(BuildContext context) { diff --git a/lib/screens/live_care/live-care_transfer_to_admin.dart b/lib/screens/live_care/live-care_transfer_to_admin.dart index d9882414..a62eee68 100644 --- a/lib/screens/live_care/live-care_transfer_to_admin.dart +++ b/lib/screens/live_care/live-care_transfer_to_admin.dart @@ -23,7 +23,7 @@ import 'package:speech_to_text/speech_to_text.dart' as stt; class LivaCareTransferToAdmin extends StatefulWidget { final PatiantInformtion patient; - const LivaCareTransferToAdmin({Key ? key, this.patient}) : super(key: key); + const LivaCareTransferToAdmin({Key? key, required this.patient}) : super(key: key); @override _LivaCareTransferToAdminState createState() => @@ -34,10 +34,10 @@ class _LivaCareTransferToAdminState extends State { stt.SpeechToText speech = stt.SpeechToText(); var reconizedWord; var event = RobotProvider(); - ProjectViewModel projectViewModel; + late ProjectViewModel projectViewModel; TextEditingController noteController = TextEditingController(); - String noteError; + late String noteError; void initState() { requestPermissions(); diff --git a/lib/screens/live_care/live_care_patient_screen.dart b/lib/screens/live_care/live_care_patient_screen.dart index a434a212..0de0d581 100644 --- a/lib/screens/live_care/live_care_patient_screen.dart +++ b/lib/screens/live_care/live_care_patient_screen.dart @@ -31,8 +31,8 @@ class LiveCarePatientScreen extends StatefulWidget { class _LiveCarePatientScreenState extends State { final _controller = TextEditingController(); - Timer timer; - LiveCarePatientViewModel _liveCareViewModel; + late Timer timer; + late LiveCarePatientViewModel _liveCareViewModel; @override void initState() { super.initState(); @@ -46,8 +46,8 @@ class _LiveCarePatientScreenState extends State { @override void dispose() { _liveCareViewModel.isLogin(0); - _liveCareViewModel = null; - timer?.cancel(); + // _liveCareViewModel = null!; + timer.cancel(); super.dispose(); } diff --git a/lib/screens/live_care/panding_list.dart b/lib/screens/live_care/panding_list.dart index 3e0b5c49..5bc25e23 100644 --- a/lib/screens/live_care/panding_list.dart +++ b/lib/screens/live_care/panding_list.dart @@ -21,7 +21,7 @@ DrAppSharedPreferances sharedPref = DrAppSharedPreferances(); class LiveCarePandingListScreen extends StatefulWidget { // In the constructor, require a item id. - LiveCarePandingListScreen({Key ? key}) : super(key: key); + LiveCarePandingListScreen({Key? key}) : super(key: key); @override _LiveCarePandingListState createState() => _LiveCarePandingListState(); @@ -31,7 +31,7 @@ class _LiveCarePandingListState extends State { List _data = []; Helpers helpers = new Helpers(); bool _isInit = true; - LiveCareViewModel _liveCareProvider; + late LiveCareViewModel _liveCareProvider; @override void didChangeDependencies() { super.didChangeDependencies(); @@ -96,7 +96,7 @@ class _LiveCarePandingListState extends State { 1, 1), colors: [ Colors.grey[ - 100], + 100]!, Colors.grey[ 200], ]), diff --git a/lib/screens/live_care/video_call.dart b/lib/screens/live_care/video_call.dart index 2d3f1d15..fd7ccbda 100644 --- a/lib/screens/live_care/video_call.dart +++ b/lib/screens/live_care/video_call.dart @@ -19,7 +19,8 @@ class VideoCallPage extends StatefulWidget { final PatiantInformtion patientData; final listContext; final LiveCarePatientViewModel model; - VideoCallPage({this.patientData, this.listContext, this.model}); + VideoCallPage( + {required this.patientData, this.listContext, required this.model}); @override _VideoCallPageState createState() => _VideoCallPageState(); @@ -28,10 +29,10 @@ class VideoCallPage extends StatefulWidget { DrAppSharedPreferances sharedPref = DrAppSharedPreferances(); class _VideoCallPageState extends State { - Timer _timmerInstance; + late Timer _timmerInstance; int _start = 0; String _timmer = ''; - LiveCareViewModel _liveCareProvider; + late LiveCareViewModel _liveCareProvider; bool _isInit = true; var _tokenData; bool isTransfer = false; @@ -67,8 +68,12 @@ class _VideoCallPageState extends State { //'1_MX40NjgwMzIyNH5-MTU5MzY4MzYzODYwM35ucExWYVRVSm5Hcy9uWGZmM1lOa3czZHV-fg', kApiKey: '46209962', vcId: widget.patientData.vcId, - isRecording: tokenData != null ? tokenData.isRecording: false, - patientName: widget.patientData.fullName ?? widget.patientData.firstName != null ? "${widget.patientData.firstName} ${widget.patientData.lastName}" : "-", + isRecording: tokenData != null ? tokenData.isRecording! : false, + patientName: widget.patientData.fullName != null + ? widget.patientData.fullName! + : widget.patientData.firstName != null + ? "${widget.patientData.firstName} ${widget.patientData.lastName}" + : "-", tokenID: token, //"hfkjshdf347r8743", generalId: "Cs2020@2016\$2958", doctorId: doctorprofile['DoctorID'], @@ -78,13 +83,13 @@ class _VideoCallPageState extends State { }, onCallEnd: () { //TODO handling onCallEnd - WidgetsBinding.instance.addPostFrameCallback((_) { + WidgetsBinding.instance!.addPostFrameCallback((_) { changeRoute(context); }); }, onCallNotRespond: (SessionStatusModel sessionStatusModel) { //TODO handling onCalNotRespondEnd - WidgetsBinding.instance.addPostFrameCallback((_) { + WidgetsBinding.instance!.addPostFrameCallback((_) { changeRoute(context); }); }); @@ -137,7 +142,7 @@ class _VideoCallPageState extends State { height: MediaQuery.of(context).size.height * 0.02, ), Text( - widget.patientData.fullName, + widget.patientData.fullName!, style: TextStyle( color: Colors.deepPurpleAccent, fontWeight: FontWeight.w900, diff --git a/lib/screens/medical-file/health_summary_page.dart b/lib/screens/medical-file/health_summary_page.dart index b1ee901b..56846d80 100644 --- a/lib/screens/medical-file/health_summary_page.dart +++ b/lib/screens/medical-file/health_summary_page.dart @@ -6,7 +6,6 @@ import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/medical-file/medical_file_details.dart'; import 'package:doctor_app_flutter/util/date-utils.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; -import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-app-bar.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/doctor_card.dart'; @@ -19,23 +18,23 @@ class HealthSummaryPage extends StatefulWidget { } class _HealthSummaryPageState extends State { - PatiantInformtion patient; + late PatiantInformtion patient; @override Widget build(BuildContext context) { - final routeArgs = ModalRoute.of(context).settings.arguments as Map; + final routeArgs = ModalRoute.of(context)!.settings.arguments as Map; patient = routeArgs['patient']; String patientType = routeArgs['patientType']; String arrivalType = routeArgs['arrivalType']; bool isInpatient = routeArgs['isInpatient']; return BaseView( onModelReady: (model) => model.getMedicalFile(mrn: patient.patientId), - builder: (BuildContext context, MedicalFileViewModel model, Widget child) => AppScaffold( - appBar: PatientProfileAppBar( - patient, + builder: (BuildContext context, MedicalFileViewModel model, Widget? child) => AppScaffold( + patientProfileAppBarModel: PatientProfileAppBarModel( + patient: patient, isInpatient: isInpatient, ), isShowAppBar: true, - appBarTitle: TranslationBase.of(context).medicalReport.toUpperCase(), + appBarTitle: TranslationBase.of(context).medicalReport!.toUpperCase(), body: NetworkBaseView( baseViewModel: model, child: SingleChildScrollView( @@ -75,86 +74,88 @@ class _HealthSummaryPageState extends State { ), (model.medicalFileList != null && model.medicalFileList.length != 0) ? ListView.builder( - //physics: , - physics: NeverScrollableScrollPhysics(), - scrollDirection: Axis.vertical, - shrinkWrap: true, - itemCount: model.medicalFileList[0].entityList[0].timelines.length, - itemBuilder: (BuildContext ctxt, int index) { - return InkWell( - onTap: () async { - if (model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0] - .consulations.length != - 0) - await locator().logEvent( - eventCategory: "Health Summary Page", - eventAction: "Health Summary Details", - ); - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => MedicalFileDetails( - age: patient.age is String ? patient.age ?? "" : "${patient.age}", - firstName: patient.firstName, - lastName: patient.lastName, - gender: patient.genderDescription, - encounterNumber: index, - pp: patient.patientId, - patient: patient, - doctorName: model.medicalFileList[0].entityList[0].timelines[index] - .timeLineEvents[0].consulations.isNotEmpty - ? model.medicalFileList[0].entityList[0].timelines[index].doctorName - : "", - clinicName: model.medicalFileList[0].entityList[0].timelines[index] - .timeLineEvents[0].consulations.isNotEmpty - ? model.medicalFileList[0].entityList[0].timelines[index].clinicName - : "", - doctorImage: model.medicalFileList[0].entityList[0].timelines[index] - .timeLineEvents[0].consulations.isNotEmpty - ? model.medicalFileList[0].entityList[0].timelines[index].doctorImage - : "", - episode: model.medicalFileList[0].entityList[0].timelines[index] - .timeLineEvents[0].consulations.isNotEmpty - ? model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0] - .consulations[0].episodeID - .toString() - : "", - vistDate: model.medicalFileList[0].entityList[0].timelines[index].date.toString()), - settings: RouteSettings(name: 'MedicalFileDetails'), - ), - ); - }, - child: DoctorCard( - doctorName: model.medicalFileList[0].entityList[0].timelines[index].doctorName, - clinic: model.medicalFileList[0].entityList[0].timelines[index].clinicName, - branch: model.medicalFileList[0].entityList[0].timelines[index].projectName, - profileUrl: model.medicalFileList[0].entityList[0].timelines[index].doctorImage, - appointmentDate: AppDateUtils.getDateTimeFromServerFormat( - model.medicalFileList[0].entityList[0].timelines[index].date, - ), - isPrescriptions: true, - isShowEye: model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0] - .consulations.length != - 0 - ? true - : false), + //physics: , + physics: NeverScrollableScrollPhysics(), + scrollDirection: Axis.vertical, + shrinkWrap: true, + itemCount: model.medicalFileList[0].entityList![0].timelines!.length, + itemBuilder: (BuildContext ctxt, int index) { + return InkWell( + onTap: () async{ + if (model.medicalFileList[0].entityList![0].timelines![index].timeLineEvents![0] + .consulations!.length != + 0) + await locator().logEvent( + eventCategory: "Health Summary Page", + eventAction: "Health Summary Details", + );Navigator.push( + context, + MaterialPageRoute( + builder: (context) => MedicalFileDetails( + age: patient.age is String ? patient.age ?? "" : "${patient.age}", + firstName: patient.firstName ?? "", + lastName: patient.lastName ?? "", + gender: patient.genderDescription ?? "", + encounterNumber: index, + pp: patient.patientId, + patient: patient, + doctorName: model.medicalFileList[0].entityList![0].timelines![index] + .timeLineEvents![0].consulations!.isNotEmpty + ? model.medicalFileList[0].entityList![0].timelines![index].doctorName + : "", + clinicName: model.medicalFileList[0].entityList![0].timelines![index] + .timeLineEvents![0].consulations!.isNotEmpty + ? model.medicalFileList[0].entityList![0].timelines![index].clinicName + : "", + doctorImage: model.medicalFileList[0].entityList![0].timelines![index] + .timeLineEvents![0].consulations!.isNotEmpty + ? model.medicalFileList[0].entityList![0].timelines![index].doctorImage + : "", + episode: model.medicalFileList[0].entityList![0].timelines![index] + .timeLineEvents![0].consulations!.isNotEmpty + ? model.medicalFileList[0].entityList![0].timelines![index] + .timeLineEvents![0] + .consulations![0].episodeID + .toString() + : "", + vistDate: model.medicalFileList[0].entityList![0].timelines![index].date + .toString()), + settings: RouteSettings(name: 'MedicalFileDetails'), + ), ); - }) - : Center( - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - SizedBox( - height: 100, + }, + child: DoctorCard( + doctorName: + model.medicalFileList[0].entityList![0].timelines![index].doctorName ?? "", + clinic: model.medicalFileList[0].entityList![0].timelines![index].clinicName ?? "", + branch: model.medicalFileList[0].entityList![0].timelines![index].projectName ?? "", + profileUrl: + model.medicalFileList[0].entityList![0].timelines![index].doctorImage ?? "", + appointmentDate: AppDateUtils.getDateTimeFromServerFormat( + model.medicalFileList[0].entityList![0].timelines![index].date ?? "", ), - Image.asset('assets/images/no-data.png'), - Padding( - padding: const EdgeInsets.all(8.0), - child: AppText(TranslationBase.of(context).noMedicalFileFound), - ) - ], - ), + isPrescriptions: true, + isShowEye: model.medicalFileList[0].entityList![0].timelines![index].timeLineEvents![0].consulations!.length != + 0 + ? true + : false), + ); + }) + : Center( + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + SizedBox( + height: 100, + ), + Image.asset('assets/images/no-data.png'), + Padding( + padding: const EdgeInsets.all(8.0), + child: AppText(TranslationBase.of(context).noMedicalFileFound), ) + ], + ), + ) ], ), ), diff --git a/lib/screens/medicine/medicine_search_screen.dart b/lib/screens/medicine/medicine_search_screen.dart index 4998e99c..8bee4f37 100644 --- a/lib/screens/medicine/medicine_search_screen.dart +++ b/lib/screens/medicine/medicine_search_screen.dart @@ -33,7 +33,7 @@ DrAppSharedPreferances sharedPref = DrAppSharedPreferances(); class MedicineSearchScreen extends StatefulWidget with DrAppToastMsg { MedicineSearchScreen({this.changeLoadingState}); - final Function changeLoadingState; + final Function? changeLoadingState; @override _MedicineSearchState createState() => _MedicineSearchState(); @@ -48,17 +48,16 @@ class _MedicineSearchState extends State { bool _isInit = true; final SpeechToText speech = SpeechToText(); String lastStatus = ''; - GetMedicationResponseModel _selectedMedication; - GlobalKey key = - new GlobalKey>(); + late GetMedicationResponseModel _selectedMedication; + GlobalKey key = new GlobalKey>(); // String lastWords; List _localeNames = []; - String lastError; + late String lastError; double level = 0.0; double minSoundLevel = 50000; double maxSoundLevel = -50000; - String reconizedWord; + late String reconizedWord; @override void didChangeDependencies() { diff --git a/lib/screens/medicine/pharmacies_list_screen.dart b/lib/screens/medicine/pharmacies_list_screen.dart index b7c55c3f..5ed16cea 100644 --- a/lib/screens/medicine/pharmacies_list_screen.dart +++ b/lib/screens/medicine/pharmacies_list_screen.dart @@ -23,8 +23,7 @@ class PharmaciesListScreen extends StatefulWidget { final String url; - PharmaciesListScreen({Key ? key, @required this.itemID, this.url}) - : super(key: key); + PharmaciesListScreen({Key? key, required this.itemID, required this.url}) : super(key: key); @override _PharmaciesListState createState() => _PharmaciesListState(); @@ -32,8 +31,7 @@ class PharmaciesListScreen extends StatefulWidget { class _PharmaciesListState extends State { Helpers helpers = new Helpers(); - ProjectViewModel projectsProvider; - + late ProjectViewModel projectsProvider; @override Widget build(BuildContext context) { @@ -230,9 +228,8 @@ class _PharmaciesListState extends State { } //TODO CHECK THE URL IS NULL OR NOT - Uint8List dataFromBase64String(String base64String) { - if(base64String !=null) - return base64Decode(base64String); + Uint8List? dataFromBase64String(String base64String) { + if (base64String != null) return base64Decode(base64String); } String base64String(Uint8List data) { diff --git a/lib/screens/patient-sick-leave/patient_sick_leave_screen.dart b/lib/screens/patient-sick-leave/patient_sick_leave_screen.dart index 1e902547..19c1de87 100644 --- a/lib/screens/patient-sick-leave/patient_sick_leave_screen.dart +++ b/lib/screens/patient-sick-leave/patient_sick_leave_screen.dart @@ -24,13 +24,13 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; class PatientSickLeaveScreen extends StatelessWidget { - PatiantInformtion patient; + late PatiantInformtion patient; @override Widget build(BuildContext context) { ProjectViewModel projectsProvider = Provider.of(context); - final routeArgs = ModalRoute.of(context).settings.arguments as Map; + final routeArgs = ModalRoute.of(context)!.settings.arguments as Map; patient = routeArgs['patient']; bool isInpatient = routeArgs['isInpatient']; return BaseView( diff --git a/lib/screens/patients/In_patient/InPatientHeader.dart b/lib/screens/patients/In_patient/InPatientHeader.dart index cbc8a823..3566fa23 100644 --- a/lib/screens/patients/In_patient/InPatientHeader.dart +++ b/lib/screens/patients/In_patient/InPatientHeader.dart @@ -10,7 +10,7 @@ import 'package:provider/provider.dart'; class InPatientHeader extends StatelessWidget with PreferredSizeWidget { InPatientHeader( - { this.model, + {required this.model, this.specialClinic, this.activeTab, this.selectedMapId, diff --git a/lib/screens/patients/In_patient/NoData.dart b/lib/screens/patients/In_patient/NoData.dart index 0c48cd2a..4e187731 100644 --- a/lib/screens/patients/In_patient/NoData.dart +++ b/lib/screens/patients/In_patient/NoData.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; class NoData extends StatelessWidget { const NoData({ - Key key, + Key? key, }) : super(key: key); @override diff --git a/lib/screens/patients/In_patient/in_patient_list_page.dart b/lib/screens/patients/In_patient/in_patient_list_page.dart index 7498257d..77707b9b 100644 --- a/lib/screens/patients/In_patient/in_patient_list_page.dart +++ b/lib/screens/patients/In_patient/in_patient_list_page.dart @@ -25,12 +25,12 @@ class InPatientListPage extends StatefulWidget { final Function onChangeValue; InPatientListPage( - {this.isMyInPatient, - this.patientSearchViewModel, - this.selectedClinicName, - this.onChangeValue, - this.isAllClinic, - this.showBottomSheet}); + {required this.isMyInPatient, + required this.patientSearchViewModel, + required this.selectedClinicName, + required this.onChangeValue, + required this.isAllClinic, + required this.showBottomSheet}); @override _InPatientListPageState createState() => _InPatientListPageState(); @@ -280,7 +280,7 @@ class _InPatientListPageState extends State { .patientSearchViewModel .InpatientClinicList[index]); widget.patientSearchViewModel - .filterByClinic(clinicName: value); + .filterByClinic(clinicName: value.toString()); }); }, activeColor: Colors.red, diff --git a/lib/screens/patients/In_patient/list_of_all_in_patient.dart b/lib/screens/patients/In_patient/list_of_all_in_patient.dart index 9b589a00..b29aafa2 100644 --- a/lib/screens/patients/In_patient/list_of_all_in_patient.dart +++ b/lib/screens/patients/In_patient/list_of_all_in_patient.dart @@ -7,10 +7,10 @@ import 'NoData.dart'; class ListOfAllInPatient extends StatelessWidget { const ListOfAllInPatient({ - Key key, - @required this.isAllClinic, - @required this.hasQuery, - this.patientSearchViewModel, + Key? key, + required this.isAllClinic, + required this.hasQuery, + required this.patientSearchViewModel, }) : super(key: key); final bool isAllClinic; @@ -77,7 +77,7 @@ class ListOfAllInPatient extends StatelessWidget { patientSearchViewModel.removeOnFilteredList(); } } - return; + return false; }, ), ), diff --git a/lib/screens/patients/In_patient/list_of_my_inpatient.dart b/lib/screens/patients/In_patient/list_of_my_inpatient.dart index f5f7c070..79b7c0df 100644 --- a/lib/screens/patients/In_patient/list_of_my_inpatient.dart +++ b/lib/screens/patients/In_patient/list_of_my_inpatient.dart @@ -6,10 +6,10 @@ import '../../../routes.dart'; import 'NoData.dart'; class ListOfMyInpatient extends StatelessWidget { const ListOfMyInpatient({ - Key key, - @required this.isAllClinic, - @required this.hasQuery, - this.patientSearchViewModel, + Key? key, + required this.isAllClinic, + required this.hasQuery, + required this.patientSearchViewModel, }) : super(key: key); final bool isAllClinic; @@ -56,9 +56,6 @@ class ListOfMyInpatient extends StatelessWidget { }, ); }), - onNotification: (t) { - return; - }, ), ), ); diff --git a/lib/screens/patients/insurance_approval_screen_patient.dart b/lib/screens/patients/insurance_approval_screen_patient.dart index 0ad4abd0..ecd153eb 100644 --- a/lib/screens/patients/insurance_approval_screen_patient.dart +++ b/lib/screens/patients/insurance_approval_screen_patient.dart @@ -20,7 +20,7 @@ import '../base/base_view.dart'; class InsuranceApprovalScreenNew extends StatefulWidget { final int appointmentNo; - InsuranceApprovalScreenNew({this.appointmentNo}); + InsuranceApprovalScreenNew({required this.appointmentNo}); @override _InsuranceApprovalScreenNewState createState() => diff --git a/lib/screens/patients/out_patient/filter_date_page.dart b/lib/screens/patients/out_patient/filter_date_page.dart index 14ae707b..431a429b 100644 --- a/lib/screens/patients/out_patient/filter_date_page.dart +++ b/lib/screens/patients/out_patient/filter_date_page.dart @@ -16,8 +16,7 @@ class FilterDatePage extends StatefulWidget { final OutPatientFilterType outPatientFilterType; final PatientSearchViewModel patientSearchViewModel; - const FilterDatePage( - {Key key, this.outPatientFilterType, this.patientSearchViewModel}) + const FilterDatePage({Key? key, required this.outPatientFilterType, required this.patientSearchViewModel}) : super(key: key); @override @@ -63,16 +62,12 @@ class _FilterDatePageState extends State { color: Colors.white, child: InkWell( onTap: () => selectDate(context, - firstDate: - getFirstDate(widget.outPatientFilterType), - lastDate: - getLastDate(widget.outPatientFilterType)), + firstDate: getFirstDate(widget.outPatientFilterType), + lastDate: getLastDate(widget.outPatientFilterType)), child: TextField( decoration: textFieldSelectorDecoration( - TranslationBase.of(context).fromDate, - widget.patientSearchViewModel - .selectedFromDate != - null + TranslationBase.of(context).fromDate!, + widget.patientSearchViewModel.selectedFromDate != null ? "${AppDateUtils.convertStringToDateFormat(widget.patientSearchViewModel.selectedFromDate.toString(), "yyyy-MM-dd")}" : null, true, @@ -92,16 +87,12 @@ class _FilterDatePageState extends State { child: InkWell( onTap: () => selectDate(context, isFromDate: false, - firstDate: - getFirstDate(widget.outPatientFilterType), - lastDate: - getLastDate(widget.outPatientFilterType)), + firstDate: getFirstDate(widget.outPatientFilterType), + lastDate: getLastDate(widget.outPatientFilterType)), child: TextField( decoration: textFieldSelectorDecoration( - TranslationBase.of(context).toDate, - widget.patientSearchViewModel - .selectedToDate != - null + TranslationBase.of(context).toDate!, + widget.patientSearchViewModel.selectedToDate != null ? "${AppDateUtils.convertStringToDateFormat(widget.patientSearchViewModel.selectedToDate.toString(), "yyyy-MM-dd")}" : null, true, @@ -199,16 +190,15 @@ class _FilterDatePageState extends State { )); } - selectDate(BuildContext context, - {bool isFromDate = true, DateTime firstDate, lastDate}) async { + selectDate(BuildContext context, {bool isFromDate = true, DateTime? firstDate, lastDate}) async { Helpers.hideKeyboard(context); DateTime selectedDate = isFromDate ? this.widget.patientSearchViewModel.selectedFromDate ?? firstDate : this.widget.patientSearchViewModel.selectedToDate ?? lastDate; - final DateTime picked = await showDatePicker( + final DateTime? picked = await showDatePicker( context: context, initialDate: selectedDate, - firstDate: firstDate, + firstDate: firstDate!, lastDate: lastDate, initialEntryMode: DatePickerEntryMode.calendar, ); diff --git a/lib/util/NotificationPermissionUtils.dart b/lib/util/NotificationPermissionUtils.dart index 8950fae3..550fedc5 100644 --- a/lib/util/NotificationPermissionUtils.dart +++ b/lib/util/NotificationPermissionUtils.dart @@ -7,7 +7,7 @@ import 'package:permission_handler/permission_handler.dart'; class AppPermissionsUtils { - static requestVideoCallPermission({BuildContext context, String type,Function onTapGrant}) async { + static requestVideoCallPermission({required BuildContext context, required String type,required Function onTapGrant}) async { var cameraPermission = Permission.camera; var microphonePermission = Permission.microphone; diff --git a/lib/util/date-utils.dart b/lib/util/date-utils.dart index a10a18e3..26df2120 100644 --- a/lib/util/date-utils.dart +++ b/lib/util/date-utils.dart @@ -431,7 +431,7 @@ class AppDateUtils { } static convertDateFormatImproved(String str) { - String newDate; + String newDate =''; const start = "/Date("; if (str.isNotEmpty) { const end = "+0300)"; @@ -448,6 +448,6 @@ class AppDateUtils { date.day.toString().padLeft(2, '0'); } - return newDate ?? ''; + return newDate ; } } diff --git a/lib/util/dr_app_shared_pref.dart b/lib/util/dr_app_shared_pref.dart index bac296bf..f42ddbed 100644 --- a/lib/util/dr_app_shared_pref.dart +++ b/lib/util/dr_app_shared_pref.dart @@ -32,7 +32,7 @@ class DrAppSharedPreferances { return prefs.setInt(key, value); } - getString(String key) async { + getString (String key) async { final SharedPreferences prefs = await _prefs; return prefs.getString(key); } @@ -40,7 +40,7 @@ class DrAppSharedPreferances { /// Get String [key] the key was saved getStringWithDefaultValue(String key, String defaultVal) async { final SharedPreferences prefs = await _prefs; - String value = prefs.getString(key); + String? value = prefs.getString(key); return value == null ? defaultVal : value; } diff --git a/lib/util/extenstions.dart b/lib/util/extenstions.dart index da353ad0..a0fd8082 100644 --- a/lib/util/extenstions.dart +++ b/lib/util/extenstions.dart @@ -1,10 +1,5 @@ extension Extension on Object { - bool isNullOrEmpty() => this == null || this == ''; - - bool isNullEmptyOrFalse() => this == null || this == '' || !this; - - bool isNullEmptyZeroOrFalse() => - this == null || this == '' || !this || this == 0; + bool isNullOrEmpty() => this == ''; } /// truncate the [String] without cutting words. The length is calculated with the suffix. diff --git a/lib/util/helpers.dart b/lib/util/helpers.dart index 42816f9f..3420f9b3 100644 --- a/lib/util/helpers.dart +++ b/lib/util/helpers.dart @@ -47,7 +47,7 @@ class Helpers { ), actions: [ AppButton( - onPressed: okFunction, + onPressed: okFunction(), title: TranslationBase.of(context).noteConfirm, fontColor: Colors.white, color: AppGlobal.appGreenColor, @@ -231,14 +231,13 @@ class Helpers { static String parseHtmlString(String htmlString) { final document = parse(htmlString); - final String parsedString = parse(document.body.text).documentElement.text; + final String parsedString = parse(document.body!.text).documentElement!.text; return parsedString; } - static InputDecoration textFieldSelectorDecoration( - String hintText, String selectedText, bool isDropDown, - {Icon suffixIcon, Color dropDownColor}) { + static InputDecoration textFieldSelectorDecoration(String hintText, String? selectedText, bool isDropDown, + {Icon? suffixIcon, Color? dropDownColor}) { return InputDecoration( focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: Color(0xFFCCCCCC), width: 2.0), @@ -300,9 +299,23 @@ class Helpers { return htmlRegex.hasMatch(text); } - static String timeFrom({Duration duration}) { + static getNameFromKPI(String kpi) { + if (kpi.indexOf("(") > -1) + return kpi.substring(0, kpi.indexOf("(")); + else + return kpi; + } + + static getLabelFromKPI(String kpi) { + if (kpi.indexOf("(") > -1 && kpi.indexOf(")") > -1) + return kpi.substring(kpi.indexOf("(") + 1, kpi.indexOf(")")); + else + return ''; + } + + static String timeFrom({Duration? duration}) { String twoDigits(int n) => n.toString().padLeft(2, "0"); - String twoDigitMinutes = twoDigits(duration.inMinutes.remainder(60)); + String twoDigitMinutes = twoDigits(duration!.inMinutes.remainder(60)); String twoDigitSeconds = twoDigits(duration.inSeconds.remainder(60)); return "$twoDigitMinutes:$twoDigitSeconds"; } diff --git a/lib/util/translations_delegate_base.dart b/lib/util/translations_delegate_base.dart index 0c25bca7e..e5acca16 100644 --- a/lib/util/translations_delegate_base.dart +++ b/lib/util/translations_delegate_base.dart @@ -6,1485 +6,1163 @@ import 'package:flutter/material.dart'; class TranslationBase { TranslationBase(this.locale); - - final Locale locale; + late Locale locale; static TranslationBase of(BuildContext context) { - return Localizations.of(context, TranslationBase); + return Localizations.of(context, TranslationBase)!; } - String get dashboardScreenToolbarTitle => - localizedValues['dashboardScreenToolbarTitle'][locale.languageCode]; + String? get dashboardScreenToolbarTitle => localizedValues['dashboardScreenToolbarTitle']![locale.languageCode]; + + String? get settings => localizedValues['settings']![locale.languageCode]; + + String? get areYouSureYouWantTo => localizedValues['areYouSureYouWantTo']![locale.languageCode]; + + String? get language => localizedValues['language']![locale.languageCode]; + + String? get lanEnglish => localizedValues['lanEnglish']![locale.languageCode]; + + String? get lanArabic => localizedValues['lanArabic']![locale.languageCode]; + + String? get theDoctor => localizedValues['theDoctor']![locale.languageCode]; + + String? get reply => localizedValues['reply']![locale.languageCode]; + + String? get time => localizedValues['time']![locale.languageCode]; - String get settings => localizedValues['settings'][locale.languageCode]; + String? get fileNo => localizedValues['fileNo']![locale.languageCode]; - String get areYouSureYouWantTo => - localizedValues['areYouSureYouWantTo'][locale.languageCode]; + String? get mobileNo => localizedValues['mobileNo']![locale.languageCode]; - String get language => localizedValues['language'][locale.languageCode]; + String? get replySuccessfully => localizedValues['replySuccessfully']![locale.languageCode]; - String get lanEnglish => localizedValues['lanEnglish'][locale.languageCode]; + String? get messagesScreenToolbarTitle => localizedValues['messagesScreenToolbarTitle']![locale.languageCode]; - String get lanArabic => localizedValues['lanArabic'][locale.languageCode]; + String? get mySchedule => localizedValues['mySchedule']![locale.languageCode]; - String get theDoctor => localizedValues['theDoctor'][locale.languageCode]; + String? get errorNoSchedule => localizedValues['errorNoSchedule']![locale.languageCode]; - String get reply => localizedValues['reply'][locale.languageCode]; + String? get verify => localizedValues['verify']![locale.languageCode]; - String get time => localizedValues['time'][locale.languageCode]; + String? get referralDoctor => localizedValues['referralDoctor']![locale.languageCode]; - String get fileNo => localizedValues['fileNo'][locale.languageCode]; + String? get referringClinic => localizedValues['referringClinic']![locale.languageCode]; - String get mobileNo => localizedValues['mobileNo'][locale.languageCode]; + String? get frequency => localizedValues['frequency']![locale.languageCode]; - String get replySuccessfully => - localizedValues['replySuccessfully'][locale.languageCode]; + String? get priority => localizedValues['priority']![locale.languageCode]; - String get messagesScreenToolbarTitle => - localizedValues['messagesScreenToolbarTitle'][locale.languageCode]; + String? get maxResponseTime => localizedValues['maxResponseTime']![locale.languageCode]; - String get mySchedule => localizedValues['mySchedule'][locale.languageCode]; + String? get clinicDetailsandRemarks => localizedValues['clinicDetailsandRemarks']![locale.languageCode]; - String get errorNoSchedule => - localizedValues['errorNoSchedule'][locale.languageCode]; + String? get answerSuggestions => localizedValues['answerSuggestions']![locale.languageCode]; - String get verify => localizedValues['verify'][locale.languageCode]; + String? get outPatients => localizedValues['outPatients']![locale.languageCode]; - String get referralDoctor => - localizedValues['referralDoctor'][locale.languageCode]; + String? get searchPatient => localizedValues['searchPatient']![locale.languageCode]; + String? get searchPatientDashBoard => localizedValues['searchPatientDashBoard']![locale.languageCode]; + String? get searchPatientName => localizedValues['searchPatient-name']![locale.languageCode]; - String get referringClinic => - localizedValues['referringClinic'][locale.languageCode]; + String? get searchAbout => localizedValues['searchAbout']![locale.languageCode]; - String get frequency => localizedValues['frequency'][locale.languageCode]; + String? get patient => localizedValues['patient']![locale.languageCode]; + String? get patients => localizedValues['patients']![locale.languageCode]; + String? get labResult => localizedValues['labResult']![locale.languageCode]; - String get priority => localizedValues['priority'][locale.languageCode]; + String? get todayStatistics => localizedValues['todayStatistics']![locale.languageCode]; - String get maxResponseTime => - localizedValues['maxResponseTime'][locale.languageCode]; + String? get familyMedicine => localizedValues['familyMedicine']![locale.languageCode]; - String get clinicDetailsandRemarks => - localizedValues['clinicDetailsandRemarks'][locale.languageCode]; + String? get arrived => localizedValues['arrived']![locale.languageCode]; - String get answerSuggestions => - localizedValues['answerSuggestions'][locale.languageCode]; + String? get er => localizedValues['er']![locale.languageCode]; - String get outPatients => localizedValues['outPatients'][locale.languageCode]; + String? get walkIn => localizedValues['walkIn']![locale.languageCode]; - String get searchPatient => - localizedValues['searchPatient'][locale.languageCode]; - String get searchPatientDashBoard => - localizedValues['searchPatientDashBoard'][locale.languageCode]; - String get searchPatientName => - localizedValues['searchPatient-name'][locale.languageCode]; + String? get notArrived => localizedValues['notArrived']![locale.languageCode]; - String get searchAbout => localizedValues['searchAbout'][locale.languageCode]; + String? get radiology => localizedValues['radiology']![locale.languageCode]; - String get patient => localizedValues['patient'][locale.languageCode]; - String get patients => localizedValues['patients'][locale.languageCode]; - String get labResult => localizedValues['labResult'][locale.languageCode]; + String? get service => localizedValues['service']![locale.languageCode]; - String get todayStatistics => - localizedValues['todayStatistics'][locale.languageCode]; + String? get referral => localizedValues['referral']![locale.languageCode]; - String get familyMedicine => - localizedValues['familyMedicine'][locale.languageCode]; + String? get inPatient => localizedValues['inPatient']![locale.languageCode]; + String? get myInPatient => localizedValues['myInPatient']![locale.languageCode]; + String? get myInPatientTitle => localizedValues['myInPatientTitle']![locale.languageCode]; + String? get inPatientLabel => localizedValues['inPatientLabel']![locale.languageCode]; - String get arrived => localizedValues['arrived'][locale.languageCode]; + String? get inPatientAll => localizedValues['inPatientAll']![locale.languageCode]; - String get er => localizedValues['er'][locale.languageCode]; + String? get operations => localizedValues['operations']![locale.languageCode]; - String get walkIn => localizedValues['walkIn'][locale.languageCode]; + String? get patientServices => localizedValues['patientServices']![locale.languageCode]; - String get notArrived => localizedValues['notArrived'][locale.languageCode]; + String? get searchMedicine => localizedValues['searchMedicine']![locale.languageCode]; + String? get searchMedicineDashboard => localizedValues['searchMedicineDashboard']![locale.languageCode]; - String get radiology => localizedValues['radiology'][locale.languageCode]; + String? get myReferralPatient => localizedValues['myReferralPatient']![locale.languageCode]; - String get service => localizedValues['service'][locale.languageCode]; + String? get referPatient => localizedValues['referPatient']![locale.languageCode]; - String get referral => localizedValues['referral'][locale.languageCode]; + String? get myReferral => localizedValues['myReferral']![locale.languageCode]; - String get inPatient => localizedValues['inPatient'][locale.languageCode]; - String get myInPatient => localizedValues['myInPatient'][locale.languageCode]; - String get myInPatientTitle => - localizedValues['myInPatientTitle'][locale.languageCode]; - String get inPatientLabel => - localizedValues['inPatientLabel'][locale.languageCode]; + String? get myReferredPatient => localizedValues['myReferredPatient']![locale.languageCode]; + String? get referredPatient => localizedValues['referredPatient']![locale.languageCode]; + String? get referredOn => localizedValues['referredOn']![locale.languageCode]; - String get inPatientAll => - localizedValues['inPatientAll'][locale.languageCode]; + String? get firstName => localizedValues['firstName']![locale.languageCode]; - String get operations => localizedValues['operations'][locale.languageCode]; + String? get middleName => localizedValues['middleName']![locale.languageCode]; - String get patientServices => - localizedValues['patientServices'][locale.languageCode]; + String? get lastName => localizedValues['lastName']![locale.languageCode]; - String get searchMedicine => - localizedValues['searchMedicine'][locale.languageCode]; - String get searchMedicineDashboard => - localizedValues['searchMedicineDashboard'][locale.languageCode]; + String? get phoneNumber => localizedValues['phoneNumber']![locale.languageCode]; - String get myReferralPatient => - localizedValues['myReferralPatient'][locale.languageCode]; + String? get patientID => localizedValues['patientID']![locale.languageCode]; - String get referPatient => - localizedValues['referPatient'][locale.languageCode]; + String? get patientFile => localizedValues['patientFile']![locale.languageCode]; - String get myReferral => localizedValues['myReferral'][locale.languageCode]; + String? get search => localizedValues['search']![locale.languageCode]; - String get myReferredPatient => - localizedValues['myReferredPatient'][locale.languageCode]; - String get referredPatient => - localizedValues['referredPatient'][locale.languageCode]; - String get referredOn => localizedValues['referredOn'][locale.languageCode]; + String? get onlyArrivedPatient => localizedValues['onlyArrivedPatient']![locale.languageCode]; - String get firstName => localizedValues['firstName'][locale.languageCode]; - String get firstNameInAr => - localizedValues['firstNameInAr'][locale.languageCode]; + String? get searchMedicineNameHere => localizedValues['searchMedicineNameHere']![locale.languageCode]; - String get middleName => localizedValues['middleName'][locale.languageCode]; - String get middleNameInAr => - localizedValues['middleNameInAr'][locale.languageCode]; + String? get youCanFind => localizedValues['youCanFind']![locale.languageCode]; - String get lastName => localizedValues['lastName'][locale.languageCode]; - String get lastNameInAr => - localizedValues['lastNameInAr'][locale.languageCode]; + String? get itemsInSearch => localizedValues['itemsInSearch']![locale.languageCode]; - String get phoneNumber => localizedValues['phoneNumber'][locale.languageCode]; + String? get qr => localizedValues['qr']![locale.languageCode]; - String get patientID => localizedValues['patientID'][locale.languageCode]; + String? get reader => localizedValues['reader']![locale.languageCode]; - String get patientFile => localizedValues['patientFile'][locale.languageCode]; + String? get startScanning => localizedValues['startScanning']![locale.languageCode]; - String get search => localizedValues['search'][locale.languageCode]; + String? get scanQrCode => localizedValues['scanQrCode']![locale.languageCode]; - String get onlyArrivedPatient => - localizedValues['onlyArrivedPatient'][locale.languageCode]; + String? get scanQr => localizedValues['scanQr']![locale.languageCode]; - String get searchMedicineNameHere => - localizedValues['searchMedicineNameHere'][locale.languageCode]; + String? get profile => localizedValues['profile']![locale.languageCode]; - String get youCanFind => localizedValues['youCanFind'][locale.languageCode]; + String? get gender => localizedValues['gender']![locale.languageCode]; - String get itemsInSearch => - localizedValues['itemsInSearch'][locale.languageCode]; + String? get clinic => localizedValues['clinic']![locale.languageCode]; - String get qr => localizedValues['qr'][locale.languageCode]; + String? get clinicSelect => localizedValues['clinicSelect']![locale.languageCode]; - String get reader => localizedValues['reader'][locale.languageCode]; + String? get doctorSelect => localizedValues['doctorSelect']![locale.languageCode]; - String get startScanning => - localizedValues['startScanning'][locale.languageCode]; + String? get hospital => localizedValues['hospital']![locale.languageCode]; - String get scanQrCode => localizedValues['scanQrCode'][locale.languageCode]; + String? get speciality => localizedValues['speciality']![locale.languageCode]; - String get scanQr => localizedValues['scanQr'][locale.languageCode]; + String? get errorMessage => localizedValues['errorMessage']![locale.languageCode]; - String get profile => localizedValues['profile'][locale.languageCode]; + String? get patientProfile => localizedValues['patientProfile']![locale.languageCode]; - String get gender => localizedValues['gender'][locale.languageCode]; + String? get vitalSign => localizedValues['vitalSign']![locale.languageCode]; - String get clinic => localizedValues['clinic'][locale.languageCode]; + String? get vital => localizedValues['vital']![locale.languageCode]; - String get clinicSelect => - localizedValues['clinicSelect'][locale.languageCode]; + String? get signs => localizedValues['signs']![locale.languageCode]; - String get doctorSelect => - localizedValues['doctorSelect'][locale.languageCode]; + String? get labOrder => localizedValues['labOrder']![locale.languageCode]; - String get hospital => localizedValues['hospital'][locale.languageCode]; + String? get lab => localizedValues['lab']![locale.languageCode]; - String get speciality => localizedValues['speciality'][locale.languageCode]; + String? get result => localizedValues['result']![locale.languageCode]; - String get errorMessage => - localizedValues['errorMessage'][locale.languageCode]; + String? get medicines => localizedValues['medicines']![locale.languageCode]; - String get patientProfile => - localizedValues['patientProfile'][locale.languageCode]; + String? get prescription => localizedValues['prescription']![locale.languageCode]; - String get vitalSign => localizedValues['vitalSign'][locale.languageCode]; + String? get insuranceApprovals => localizedValues['insuranceApprovals']![locale.languageCode]; - String get vital => localizedValues['vital'][locale.languageCode]; + String? get insurance => localizedValues['insurance']![locale.languageCode]; - String get signs => localizedValues['signs'][locale.languageCode]; + String? get approvals => localizedValues['approvals']![locale.languageCode]; - String get labOrder => localizedValues['labOrder'][locale.languageCode]; + String? get bodyMeasurements => localizedValues['bodyMeasurements']![locale.languageCode]; - String get lab => localizedValues['lab'][locale.languageCode]; + String? get temperature => localizedValues['temperature']![locale.languageCode]; - String get result => localizedValues['result'][locale.languageCode]; + String? get pulse => localizedValues['pulse']![locale.languageCode]; - String get medicines => localizedValues['medicines'][locale.languageCode]; + String? get respiration => localizedValues['respiration']![locale.languageCode]; - String get prescription => - localizedValues['prescription'][locale.languageCode]; + String? get bloodPressure => localizedValues['bloodPressure']![locale.languageCode]; - String get insuranceApprovals => - localizedValues['insuranceApprovals'][locale.languageCode]; + String? get oxygenation => localizedValues['oxygenation']![locale.languageCode]; - String get insurance => localizedValues['insurance'][locale.languageCode]; + String? get painScale => localizedValues['painScale']![locale.languageCode]; - String get approvals => localizedValues['approvals'][locale.languageCode]; + String? get errorNoVitalSign => localizedValues['errorNoVitalSign']![locale.languageCode]; - String get bodyMeasurements => - localizedValues['bodyMeasurements'][locale.languageCode]; + String? get labOrders => localizedValues['labOrders']![locale.languageCode]; - String get temperature => localizedValues['temperature'][locale.languageCode]; + String? get errorNoLabOrders => localizedValues['errorNoLabOrders']![locale.languageCode]; - String get pulse => localizedValues['pulse'][locale.languageCode]; + String? get answerThePatient => localizedValues['answerThePatient']![locale.languageCode]; - String get respiration => localizedValues['respiration'][locale.languageCode]; + String? get pleaseEnterAnswer => localizedValues['pleaseEnterAnswer']![locale.languageCode]; - String get bloodPressure => - localizedValues['bloodPressure'][locale.languageCode]; + String? get replay => localizedValues['replay']![locale.languageCode]; - String get oxygenation => localizedValues['oxygenation'][locale.languageCode]; + String? get progressNote =>localizedValues['progressNote']![locale.languageCode]; + String? get operationReports => localizedValues['operationReports']![locale.languageCode]; - String get painScale => localizedValues['painScale'][locale.languageCode]; + String? get progress => localizedValues['progress']![locale.languageCode]; - String get errorNoVitalSign => - localizedValues['errorNoVitalSign'][locale.languageCode]; + String? get note => localizedValues['note']![locale.languageCode]; - String get labOrders => localizedValues['labOrders'][locale.languageCode]; + String? get searchNote => localizedValues['searchNote']![locale.languageCode]; - String get errorNoLabOrders => - localizedValues['errorNoLabOrders'][locale.languageCode]; + String? get errorNoProgressNote => localizedValues['errorNoProgressNote']![locale.languageCode]; - String get answerThePatient => - localizedValues['answerThePatient'][locale.languageCode]; + String? get invoiceNo => localizedValues['invoiceNo:']![locale.languageCode]; + String? get orderNo => localizedValues['orderNo']![locale.languageCode]; - String get pleaseEnterAnswer => - localizedValues['pleaseEnterAnswer'][locale.languageCode]; + String? get generalResult => localizedValues['generalResult']![locale.languageCode]; - String get replay => localizedValues['replay'][locale.languageCode]; + String? get description => localizedValues['description']![locale.languageCode]; - String get progressNote => - localizedValues['progressNote'][locale.languageCode]; - String get operationReports => - localizedValues['operationReports'][locale.languageCode]; - String get reports => localizedValues['reports'][locale.languageCode]; - String get operation => localizedValues['operation'][locale.languageCode]; + String? get value => localizedValues['value']![locale.languageCode]; - String get progress => localizedValues['progress'][locale.languageCode]; + String? get range => localizedValues['range']![locale.languageCode]; - String get note => localizedValues['note'][locale.languageCode]; + String? get enterId => localizedValues['enterId']![locale.languageCode]; - String get searchNote => localizedValues['searchNote'][locale.languageCode]; + String? get pleaseEnterYourID => localizedValues['pleaseEnterYourID']![locale.languageCode]; - String get errorNoProgressNote => - localizedValues['errorNoProgressNote'][locale.languageCode]; + String? get enterPassword => localizedValues['enterPassword']![locale.languageCode]; - String get invoiceNo => localizedValues['invoiceNo:'][locale.languageCode]; - String get orderNo => localizedValues['orderNo'][locale.languageCode]; + String? get pleaseEnterPassword => localizedValues['pleaseEnterPassword']![locale.languageCode]; - String get generalResult => - localizedValues['generalResult'][locale.languageCode]; + String? get selectYourProject => localizedValues['selectYourProject']![locale.languageCode]; - String get description => localizedValues['description'][locale.languageCode]; + String? get pleaseEnterYourProject => localizedValues['pleaseEnterYourProject']![locale.languageCode]; - String get value => localizedValues['value'][locale.languageCode]; + String? get login => localizedValues['login']![locale.languageCode]; - String get range => localizedValues['range'][locale.languageCode]; + String? get drSulaimanAlHabib => localizedValues['drSulaimanAlHabib']![locale.languageCode]; - String get enterId => localizedValues['enterId'][locale.languageCode]; + String? get welcomeTo => localizedValues['welcomeTo']![locale.languageCode]; - String get pleaseEnterYourID => - localizedValues['pleaseEnterYourID'][locale.languageCode]; + String? get welcomeBackTo => localizedValues['welcomeBackTo']![locale.languageCode]; - String get enterPassword => - localizedValues['enterPassword'][locale.languageCode]; + String? get home => localizedValues['home']![locale.languageCode]; - String get pleaseEnterPassword => - localizedValues['pleaseEnterPassword'][locale.languageCode]; + String? get services => localizedValues['services']![locale.languageCode]; - String get selectYourProject => - localizedValues['selectYourProject'][locale.languageCode]; + String? get sms => localizedValues['sms']![locale.languageCode]; - String get pleaseEnterYourProject => - localizedValues['pleaseEnterYourProject'][locale.languageCode]; + String? get fingerprint => localizedValues['fingerprint']![locale.languageCode]; - String get login => localizedValues['login'][locale.languageCode]; + String? get faceId => localizedValues['faceId']![locale.languageCode]; - String get drSulaimanAlHabib => - localizedValues['drSulaimanAlHabib'][locale.languageCode]; + String? get whatsApp => localizedValues['whatsApp']![locale.languageCode]; - String get welcomeTo => localizedValues['welcomeTo'][locale.languageCode]; + String? get whatsAppBy => localizedValues['whatsAppBy']![locale.languageCode]; - String get welcomeBackTo => - localizedValues['welcomeBackTo'][locale.languageCode]; + String? get pleaseChoose => localizedValues['pleaseChoose']![locale.languageCode]; - String get home => localizedValues['home'][locale.languageCode]; + String? get choose => localizedValues['choose']![locale.languageCode]; - String get services => localizedValues['services'][locale.languageCode]; + String? get verification => localizedValues['verification']![locale.languageCode]; - String get sms => localizedValues['sms'][locale.languageCode]; + String? get firstStep => localizedValues['firstStep']![locale.languageCode]; - String get fingerprint => localizedValues['fingerprint'][locale.languageCode]; + String? get yourAccount => localizedValues['yourAccount!']![locale.languageCode]; - String get faceId => localizedValues['faceId'][locale.languageCode]; + String? get verify1 => localizedValues['verify1']![locale.languageCode]; - String get whatsApp => localizedValues['whatsApp'][locale.languageCode]; + String? get youWillReceiveA => localizedValues['youWillReceiveA']![locale.languageCode]; - String get whatsAppBy => localizedValues['whatsAppBy'][locale.languageCode]; + String? get loginCode => localizedValues['loginCode']![locale.languageCode]; - String get pleaseChoose => - localizedValues['pleaseChoose'][locale.languageCode]; + String? get smsBy => localizedValues['smsBy']![locale.languageCode]; - String get choose => localizedValues['choose'][locale.languageCode]; + String? get pleaseEnterTheCode => localizedValues['pleaseEnterTheCode']![locale.languageCode]; - String get verification => - localizedValues['verification'][locale.languageCode]; + String? get youDontHaveAnyPatient => localizedValues['youDontHaveAnyPatient']![locale.languageCode]; - String get firstStep => localizedValues['firstStep'][locale.languageCode]; + String? get youDoNotHaveAnyItem => localizedValues['youDoNotHaveAnyItem']![locale.languageCode]; - String get yourAccount => - localizedValues['yourAccount!'][locale.languageCode]; + String? get age => localizedValues['age']![locale.languageCode]; - String get verify1 => localizedValues['verify1'][locale.languageCode]; + String? get nationality => localizedValues['nationality']![locale.languageCode]; + String? get occupation => localizedValues['occupation']![locale.languageCode]; + String? get healthID => localizedValues['healthID']![locale.languageCode]; + String? get identityNumber => localizedValues['identityNumber']![locale.languageCode]; + String? get maritalStatus => localizedValues['maritalStatus']![locale.languageCode]; - String get youWillReceiveA => - localizedValues['youWillReceiveA'][locale.languageCode]; + String? get today => localizedValues['today']![locale.languageCode]; - String get loginCode => localizedValues['loginCode'][locale.languageCode]; + String? get tomorrow => localizedValues['tomorrow']![locale.languageCode]; - String get smsBy => localizedValues['smsBy'][locale.languageCode]; + String? get all => localizedValues['all']![locale.languageCode]; - String get pleaseEnterTheCode => - localizedValues['pleaseEnterTheCode'][locale.languageCode]; + String? get nextWeek => localizedValues['nextWeek']![locale.languageCode]; - String get youDontHaveAnyPatient => - localizedValues['youDontHaveAnyPatient'][locale.languageCode]; + String? get yesterday => localizedValues['yesterday']![locale.languageCode]; - String get youDoNotHaveAnyItem => - localizedValues['youDoNotHaveAnyItem'][locale.languageCode]; + String? get errorNoInsuranceApprovals => localizedValues['errorNoInsuranceApprovals']![locale.languageCode]; - String get age => localizedValues['age'][locale.languageCode]; + String? get searchInsuranceApprovals => localizedValues['searchInsuranceApprovals']![locale.languageCode]; - String get nationality => localizedValues['nationality'][locale.languageCode]; - String get occupation => localizedValues['occupation'][locale.languageCode]; - String get healthID => localizedValues['healthID'][locale.languageCode]; - String get identityNumber => - localizedValues['identityNumber'][locale.languageCode]; - String get maritalStatus => - localizedValues['maritalStatus'][locale.languageCode]; + String? get status => localizedValues['status']![locale.languageCode]; - String get today => localizedValues['today'][locale.languageCode]; + String? get expiryDate => localizedValues['expiryDate']![locale.languageCode]; - String get tomorrow => localizedValues['tomorrow'][locale.languageCode]; + String? get producerName => localizedValues['producerName']![locale.languageCode]; - String get all => localizedValues['all'][locale.languageCode]; + String? get receiptOn => localizedValues['receiptOn']![locale.languageCode]; - String get nextWeek => localizedValues['nextWeek'][locale.languageCode]; + String? get approvalNo => localizedValues['approvalNo']![locale.languageCode]; - String get yesterday => localizedValues['yesterday'][locale.languageCode]; + String? get doctor => localizedValues['doctor']![locale.languageCode]; - String get errorNoInsuranceApprovals => - localizedValues['errorNoInsuranceApprovals'][locale.languageCode]; + String? get ext => localizedValues['ext']![locale.languageCode]; - String get searchInsuranceApprovals => - localizedValues['searchInsuranceApprovals'][locale.languageCode]; + String? get veryUrgent => localizedValues['veryUrgent']![locale.languageCode]; - String get status => localizedValues['status'][locale.languageCode]; + String? get urgent => localizedValues['urgent']![locale.languageCode]; - String get expiryDate => localizedValues['expiryDate'][locale.languageCode]; + String? get routine => localizedValues['routine']![locale.languageCode]; - String get producerName => - localizedValues['producerName'][locale.languageCode]; + String? get send => localizedValues['send']![locale.languageCode]; - String get receiptOn => localizedValues['receiptOn'][locale.languageCode]; + String? get referralFrequency => localizedValues['referralFrequency']![locale.languageCode]; - String get approvalNo => localizedValues['approvalNo'][locale.languageCode]; + String? get selectReferralFrequency => localizedValues['selectReferralFrequency']![locale.languageCode]; - String get doctor => localizedValues['doctor'][locale.languageCode]; + String? get clinicalDetailsAndRemarks => localizedValues['clinicalDetailsAndRemarks']![locale.languageCode]; - String get ext => localizedValues['ext'][locale.languageCode]; + String? get remarks => localizedValues['remarks']![locale.languageCode]; - String get veryUrgent => localizedValues['veryUrgent'][locale.languageCode]; + String? get pleaseFill => localizedValues['pleaseFill']![locale.languageCode]; - String get urgent => localizedValues['urgent'][locale.languageCode]; + String? get replay2 => localizedValues['replay2']![locale.languageCode]; - String get routine => localizedValues['routine'][locale.languageCode]; + String? get outPatient => localizedValues['outPatients']![locale.languageCode]; - String get send => localizedValues['send'][locale.languageCode]; + String? get myOutPatient => localizedValues['myOutPatient']![locale.languageCode]; + String? get myOutPatient_2lines => localizedValues['myOutPatient_2lines']![locale.languageCode]; - String get referralFrequency => - localizedValues['referralFrequency'][locale.languageCode]; + String? get logout => localizedValues['logout']![locale.languageCode]; - String get selectReferralFrequency => - localizedValues['selectReferralFrequency'][locale.languageCode]; + String? get pharmaciesList => localizedValues['pharmaciesList']![locale.languageCode]; - String get clinicalDetailsAndRemarks => - localizedValues['clinicalDetailsAndRemarks'][locale.languageCode]; + String? get price => localizedValues['price']![locale.languageCode]; - String get remarks => localizedValues['remarks'][locale.languageCode]; + String? get youCanFindItIn => localizedValues['youCanFindItIn']![locale.languageCode]; - String get pleaseFill => localizedValues['pleaseFill'][locale.languageCode]; + String? get radiologyReport => localizedValues['radiologyReport']![locale.languageCode]; - String get replay2 => localizedValues['replay2'][locale.languageCode]; + String? get orders => localizedValues['orders']![locale.languageCode]; - String get outPatient => localizedValues['outPatients'][locale.languageCode]; + String? get list => localizedValues['list']![locale.languageCode]; - String get myOutPatient => - localizedValues['myOutPatient'][locale.languageCode]; - String get myOutPatient_2lines => - localizedValues['myOutPatient_2lines'][locale.languageCode]; + String? get searchOrders => localizedValues['searchOrders']![locale.languageCode]; - String get logout => localizedValues['logout'][locale.languageCode]; + String? get prescriptionDetails => localizedValues['prescriptionDetails']![locale.languageCode]; - String get pharmaciesList => - localizedValues['pharmaciesList'][locale.languageCode]; + String? get prescriptionInfo => localizedValues['prescriptionInfo']![locale.languageCode]; - String get price => localizedValues['price'][locale.languageCode]; + String? get errorNoOrders => localizedValues['errorNoOrders']![locale.languageCode]; - String get youCanFindItIn => - localizedValues['youCanFindItIn'][locale.languageCode]; + String? get livecare => localizedValues['livecare']![locale.languageCode]; - String get radiologyReport => - localizedValues['radiologyReport'][locale.languageCode]; + String? get beingBad => localizedValues['beingBad']![locale.languageCode]; - String get orders => localizedValues['orders'][locale.languageCode]; + String? get beingGreat => localizedValues['beingGreat']![locale.languageCode]; - String get list => localizedValues['list'][locale.languageCode]; + String? get cancel => localizedValues['cancel']![locale.languageCode]; - String get searchOrders => - localizedValues['searchOrders'][locale.languageCode]; + String? get ok => localizedValues['ok']![locale.languageCode]; - String get prescriptionDetails => - localizedValues['prescriptionDetails'][locale.languageCode]; + String? get done => localizedValues['done']![locale.languageCode]; - String get prescriptionInfo => - localizedValues['prescriptionInfo'][locale.languageCode]; + String? get searchMedicineImageCaption => localizedValues['searchMedicineImageCaption']![locale.languageCode]; - String get errorNoOrders => - localizedValues['errorNoOrders'][locale.languageCode]; + String? get type => localizedValues['type']![locale.languageCode]; - String get livecare => localizedValues['livecare'][locale.languageCode]; + String? get resumecall => localizedValues['resumecall']![locale.languageCode]; - String get beingBad => localizedValues['beingBad'][locale.languageCode]; + String? get endcallwithcharge => localizedValues['endcallwithcharge']![locale.languageCode]; - String get beingGreat => localizedValues['beingGreat'][locale.languageCode]; + String? get endcall => localizedValues['endcall']![locale.languageCode]; - String get cancel => localizedValues['cancel'][locale.languageCode]; + String? get transfertoadmin => localizedValues['transfertoadmin']![locale.languageCode]; - String get ok => localizedValues['ok'][locale.languageCode]; + String? get fromDate => localizedValues['fromDate']![locale.languageCode]; - String get done => localizedValues['done'][locale.languageCode]; + String? get toDate => localizedValues['toDate']![locale.languageCode]; - String get searchMedicineImageCaption => - localizedValues['searchMedicineImageCaption'][locale.languageCode]; + String? get fromTime => localizedValues['fromTime']![locale.languageCode]; - String get type => localizedValues['type'][locale.languageCode]; + String? get toTime => localizedValues['toTime']![locale.languageCode]; - String get resumecall => localizedValues['resumecall'][locale.languageCode]; + String? get searchPatientImageCaptionTitle => localizedValues['searchPatientImageCaptionTitle']![locale.languageCode]; - String get endcallwithcharge => - localizedValues['endcallwithcharge'][locale.languageCode]; + String? get searchPatientImageCaptionBody => localizedValues['searchPatientImageCaptionBody']![locale.languageCode]; - String get endcall => localizedValues['endcall'][locale.languageCode]; + String? get welcome => localizedValues['welcome']![locale.languageCode]; - String get transfertoadmin => - localizedValues['transfertoadmin'][locale.languageCode]; + String? get typeMedicineName => localizedValues['typeMedicineName']![locale.languageCode]; - String get fromDate => localizedValues['fromDate'][locale.languageCode]; + String? get moreThan3Letter => localizedValues['moreThan3Letter']![locale.languageCode]; - String get toDate => localizedValues['toDate'][locale.languageCode]; + String? get gender2 => localizedValues['gender2']![locale.languageCode]; - String get fromTime => localizedValues['fromTime'][locale.languageCode]; + String? get age2 => localizedValues['age2']![locale.languageCode]; - String get toTime => localizedValues['toTime'][locale.languageCode]; + String? get sickleave => localizedValues['sick-leaves']![locale.languageCode]; - String get searchPatientImageCaptionTitle => - localizedValues['searchPatientImageCaptionTitle'][locale.languageCode]; + String? get patientSick => localizedValues['patient-sick']![locale.languageCode]; - String get searchPatientImageCaptionBody => - localizedValues['searchPatientImageCaptionBody'][locale.languageCode]; + String? get leave => localizedValues['leave']![locale.languageCode]; - String get welcome => localizedValues['welcome'][locale.languageCode]; + String? get submit => localizedValues['submit']![locale.languageCode]; - String get typeMedicineName => - localizedValues['typeMedicineName'][locale.languageCode]; + String? get doctorName => localizedValues['doc-name']![locale.languageCode]; - String get moreThan3Letter => - localizedValues['moreThan3Letter'][locale.languageCode]; + String? get clinicName => localizedValues['clinicname']![locale.languageCode]; - String get gender2 => localizedValues['gender2'][locale.languageCode]; + String? get sickLeaveDate => localizedValues['sick-leave-date']![locale.languageCode]; - String get age2 => localizedValues['age2'][locale.languageCode]; + String? get sickLeaveDays => localizedValues['sick-leave-days']![locale.languageCode]; - String get sickleave => localizedValues['sick-leaves'][locale.languageCode]; + String? get admissionDetail => localizedValues['admissionDetail']![locale.languageCode]; - String get patientSick => - localizedValues['patient-sick'][locale.languageCode]; + String? get dateTime => localizedValues['dateTime']![locale.languageCode]; - String get leave => localizedValues['leave'][locale.languageCode]; + String? get date => localizedValues['date']![locale.languageCode]; - String get submit => localizedValues['submit'][locale.languageCode]; + String? get admissionNo => localizedValues['admissionNo']![locale.languageCode]; - String get doctorName => localizedValues['doc-name'][locale.languageCode]; + String? get losNo => localizedValues['losNo']![locale.languageCode]; - String get clinicName => localizedValues['clinicname'][locale.languageCode]; + String? get area => localizedValues['area']![locale.languageCode]; - String get sickLeaveDate => - localizedValues['sick-leave-date'][locale.languageCode]; + String? get room => localizedValues['room']![locale.languageCode]; - String get sickLeaveDays => - localizedValues['sick-leave-days'][locale.languageCode]; + String? get bed => localizedValues['bed']![locale.languageCode]; - String get admissionDetail => - localizedValues['admissionDetail'][locale.languageCode]; + String? get previousSickLeaveIssue => localizedValues['prevoius-sickleave-issed']![locale.languageCode]; - String get dateTime => localizedValues['dateTime'][locale.languageCode]; + String? get noSickLeaveApplied => localizedValues['no-sickleve-applied']![locale.languageCode]; - String get date => localizedValues['date'][locale.languageCode]; + String? get applyNow => localizedValues['applynow']![locale.languageCode]; - String get admissionNo => localizedValues['admissionNo'][locale.languageCode]; + String? get addSickLeave => localizedValues['add-sickleave']![locale.languageCode]; - String get losNo => localizedValues['losNo'][locale.languageCode]; + String? get add => localizedValues['add']![locale.languageCode]; + String? get addSickLeaverequest => localizedValues['addSickLeaveRequest']![locale.languageCode]; + String? get extendSickLeaverequest => localizedValues['extendSickLeaveRequest']![locale.languageCode]; + String? get approved => localizedValues['approved']![locale.languageCode]; - String get area => localizedValues['area'][locale.languageCode]; + String? get extended => localizedValues['extended']![locale.languageCode]; - String get room => localizedValues['room'][locale.languageCode]; + String? get pending => localizedValues['pending']![locale.languageCode]; - String get bed => localizedValues['bed'][locale.languageCode]; + String? get leaveStartDate => localizedValues['leave-start-date']![locale.languageCode]; - String get previousSickLeaveIssue => - localizedValues['prevoius-sickleave-issed'][locale.languageCode]; + String? get daysSickleave => localizedValues['days-sick-leave']![locale.languageCode]; - String get noSickLeaveApplied => - localizedValues['no-sickleve-applied'][locale.languageCode]; + String? get extend => localizedValues['extend']![locale.languageCode]; - String get applyNow => localizedValues['applynow'][locale.languageCode]; + String? get extendSickLeave => localizedValues['extend-sickleave']![locale.languageCode]; - String get addSickLeave => - localizedValues['add-sickleave'][locale.languageCode]; + String? get targetPatient => localizedValues['patient-target']![locale.languageCode]; - String get add => localizedValues['add'][locale.languageCode]; - String get addSickLeaverequest => - localizedValues['addSickLeaveRequest'][locale.languageCode]; - String get extendSickLeaverequest => - localizedValues['extendSickLeaveRequest'][locale.languageCode]; - String get approved => localizedValues['approved'][locale.languageCode]; + String? get noPrescription => localizedValues['no-priscription-listed']![locale.languageCode]; - String get extended => localizedValues['extended'][locale.languageCode]; + String? get next => localizedValues['next']![locale.languageCode]; + String? get finish => localizedValues['finish']![locale.languageCode]; - String get pending => localizedValues['pending'][locale.languageCode]; + String? get previous => localizedValues['previous']![locale.languageCode]; - String get leaveStartDate => - localizedValues['leave-start-date'][locale.languageCode]; + String? get emptyMessage => localizedValues['empty-message']![locale.languageCode]; - String get daysSickleave => - localizedValues['days-sick-leave'][locale.languageCode]; + String? get healthRecordInformation => localizedValues['healthRecordInformation']![locale.languageCode]; - String get extend => localizedValues['extend'][locale.languageCode]; + String? get chiefComplaintLength => localizedValues['chiefComplaintLength']![locale.languageCode]; - String get extendSickLeave => - localizedValues['extend-sickleave'][locale.languageCode]; + String? get referTo => localizedValues['referTo']![locale.languageCode]; - String get targetPatient => - localizedValues['patient-target'][locale.languageCode]; + String? get referredFrom => localizedValues['referredFrom']![locale.languageCode]; + String? get refClinic => localizedValues['refClinic']![locale.languageCode]; - String get noPrescription => - localizedValues['no-priscription-listed'][locale.languageCode]; + String? get branch => localizedValues['branch']![locale.languageCode]; - String get next => localizedValues['next'][locale.languageCode]; - String get finish => localizedValues['finish'][locale.languageCode]; + String? get chooseAppointment => localizedValues['chooseAppointment']![locale.languageCode]; - String get previous => localizedValues['previous'][locale.languageCode]; + String? get appointmentNo => localizedValues['appointmentNo']![locale.languageCode]; - String get emptyMessage => - localizedValues['empty-message'][locale.languageCode]; + String? get refer => localizedValues['refer']![locale.languageCode]; - String get healthRecordInformation => - localizedValues['healthRecordInformation'][locale.languageCode]; + String? get rejected => localizedValues['rejected']![locale.languageCode]; - String get chiefComplaintLength => - localizedValues['chiefComplaintLength'][locale.languageCode]; + String? get sameBranch => localizedValues['sameBranch']![locale.languageCode]; - String get referTo => localizedValues['referTo'][locale.languageCode]; + String? get otherBranch => localizedValues['otherBranch']![locale.languageCode]; - String get referredFrom => - localizedValues['referredFrom'][locale.languageCode]; - String get refClinic => localizedValues['refClinic'][locale.languageCode]; + String? get dr => localizedValues['dr']![locale.languageCode]; - String get branch => localizedValues['branch'][locale.languageCode]; + String? get previewHealth => localizedValues['previewHealth']![locale.languageCode]; - String get chooseAppointment => - localizedValues['chooseAppointment'][locale.languageCode]; + String? get summaryReport => localizedValues['summaryReport']![locale.languageCode]; - String get appointmentNo => - localizedValues['appointmentNo'][locale.languageCode]; + String? get accept => localizedValues['accept']![locale.languageCode]; - String get refer => localizedValues['refer'][locale.languageCode]; + String? get reject => localizedValues['reject']![locale.languageCode]; - String get rejected => localizedValues['rejected'][locale.languageCode]; + String? get noAppointmentsErrorMsg => localizedValues['noAppointmentsErrorMsg']![locale.languageCode]; - String get sameBranch => localizedValues['sameBranch'][locale.languageCode]; + String? get referralPatient => localizedValues['referralPatient']![locale.languageCode]; - String get otherBranch => localizedValues['otherBranch'][locale.languageCode]; + String? get noPrescriptionListed => localizedValues['noPrescriptionListed']![locale.languageCode]; - String get dr => localizedValues['dr'][locale.languageCode]; + String? get addNow => localizedValues['addNow']![locale.languageCode]; - String get previewHealth => - localizedValues['previewHealth'][locale.languageCode]; + String? get orderType => localizedValues['orderType']![locale.languageCode]; - String get summaryReport => - localizedValues['summaryReport'][locale.languageCode]; + String? get strength => localizedValues['strength']![locale.languageCode]; - String get accept => localizedValues['accept'][locale.languageCode]; + String? get doseTime => localizedValues['doseTime']![locale.languageCode]; - String get reject => localizedValues['reject'][locale.languageCode]; + String? get indication => localizedValues['indication']![locale.languageCode]; - String get noAppointmentsErrorMsg => - localizedValues['noAppointmentsErrorMsg'][locale.languageCode]; + String? get duration => localizedValues['duration']![locale.languageCode]; - String get referralPatient => - localizedValues['referralPatient'][locale.languageCode]; + String? get instruction => localizedValues['instruction']![locale.languageCode]; - String get noPrescriptionListed => - localizedValues['noPrescriptionListed'][locale.languageCode]; + String? get rescheduleLeaves => localizedValues['reschedule-leave']![locale.languageCode]; - String get addNow => localizedValues['addNow'][locale.languageCode]; + String? get applyOrRescheduleLeave => localizedValues['applyOrRescheduleLeave']![locale.languageCode]; + String? get myQRCode => localizedValues['myQRCode']![locale.languageCode]; - String get orderType => localizedValues['orderType'][locale.languageCode]; + String? get addMedication => localizedValues['addMedication']![locale.languageCode]; - String get strength => localizedValues['strength'][locale.languageCode]; + String? get route => localizedValues['route']![locale.languageCode]; - String get doseTime => localizedValues['doseTime'][locale.languageCode]; + String? get noReScheduleLeave => localizedValues['no-reschedule-leave']![locale.languageCode]; - String get indication => localizedValues['indication'][locale.languageCode]; + String? get weight => localizedValues['weight']![locale.languageCode]; - String get duration => localizedValues['duration'][locale.languageCode]; + String? get kg => localizedValues['kg']![locale.languageCode]; - String get instruction => localizedValues['instruction'][locale.languageCode]; + String? get height => localizedValues['height']![locale.languageCode]; - String get rescheduleLeaves => - localizedValues['reschedule-leave'][locale.languageCode]; + String? get cm => localizedValues['cm']![locale.languageCode]; - String get applyOrRescheduleLeave => - localizedValues['applyOrRescheduleLeave'][locale.languageCode]; - String get myQRCode => localizedValues['myQRCode'][locale.languageCode]; + String? get idealBodyWeight => localizedValues['idealBodyWeight']![locale.languageCode]; - String get addMedication => - localizedValues['addMedication'][locale.languageCode]; + String? get waistSize => localizedValues['waistSize']![locale.languageCode]; - String get route => localizedValues['route'][locale.languageCode]; + String? get inch => localizedValues['inch']![locale.languageCode]; - String get noReScheduleLeave => - localizedValues['no-reschedule-leave'][locale.languageCode]; + String? get headCircum => localizedValues['headCircum']![locale.languageCode]; - String get weight => localizedValues['weight'][locale.languageCode]; + String? get leanBodyWeight => localizedValues['leanBodyWeight']![locale.languageCode]; - String get kg => localizedValues['kg'][locale.languageCode]; + String? get bodyMassIndex => localizedValues['bodyMassIndex']![locale.languageCode]; - String get height => localizedValues['height'][locale.languageCode]; + String? get yourBodyMassIndex => localizedValues['yourBodyMassIndex']![locale.languageCode]; + String? get bmiUnderWeight => localizedValues['bmiUnderWeight']![locale.languageCode]; + String? get bmiHealthy => localizedValues['bmiHealthy']![locale.languageCode]; + String? get bmiOverWeight => localizedValues['bmiOverWeight']![locale.languageCode]; + String? get bmiObese => localizedValues['bmiObese']![locale.languageCode]; + String? get bmiObeseExtreme => localizedValues['bmiObeseExtreme']![locale.languageCode]; - String get cm => localizedValues['cm'][locale.languageCode]; + String? get method => localizedValues['method']![locale.languageCode]; - String get idealBodyWeight => - localizedValues['idealBodyWeight'][locale.languageCode]; + String? get pulseBeats => localizedValues['pulseBeats']![locale.languageCode]; - String get waistSize => localizedValues['waistSize'][locale.languageCode]; + String? get rhythm => localizedValues['rhythm']![locale.languageCode]; - String get inch => localizedValues['inch'][locale.languageCode]; + String? get respBeats => localizedValues['respBeats']![locale.languageCode]; - String get headCircum => localizedValues['headCircum'][locale.languageCode]; + String? get patternOfRespiration => localizedValues['patternOfRespiration']![locale.languageCode]; - String get leanBodyWeight => - localizedValues['leanBodyWeight'][locale.languageCode]; + String? get bloodPressureDiastoleAndSystole => localizedValues['bloodPressureDiastoleAndSystole']![locale.languageCode]; - String get bodyMassIndex => - localizedValues['bodyMassIndex'][locale.languageCode]; + String? get cuffLocation => localizedValues['cuffLocation']![locale.languageCode]; - String get yourBodyMassIndex => - localizedValues['yourBodyMassIndex'][locale.languageCode]; - String get bmiUnderWeight => - localizedValues['bmiUnderWeight'][locale.languageCode]; - String get bmiHealthy => localizedValues['bmiHealthy'][locale.languageCode]; - String get bmiOverWeight => - localizedValues['bmiOverWeight'][locale.languageCode]; - String get bmiObese => localizedValues['bmiObese'][locale.languageCode]; - String get bmiObeseExtreme => - localizedValues['bmiObeseExtreme'][locale.languageCode]; + String? get cuffSize => localizedValues['cuffSize']![locale.languageCode]; - String get method => localizedValues['method'][locale.languageCode]; + String? get patientPosition => localizedValues['patientPosition']![locale.languageCode]; - String get pulseBeats => localizedValues['pulseBeats'][locale.languageCode]; + String? get fio2 => localizedValues['fio2']![locale.languageCode]; - String get rhythm => localizedValues['rhythm'][locale.languageCode]; + String? get sao2 => localizedValues['sao2']![locale.languageCode]; - String get respBeats => localizedValues['respBeats'][locale.languageCode]; + String? get painManagement => localizedValues['painManagement']![locale.languageCode]; - String get patternOfRespiration => - localizedValues['patternOfRespiration'][locale.languageCode]; + String? get holiday => localizedValues['holiday']![locale.languageCode]; - String get bloodPressureDiastoleAndSystole => - localizedValues['bloodPressureDiastoleAndSystole'][locale.languageCode]; + String? get to => localizedValues['to']![locale.languageCode]; - String get cuffLocation => - localizedValues['cuffLocation'][locale.languageCode]; + String? get coveringDoctor => localizedValues['coveringDoctor']![locale.languageCode]; - String get cuffSize => localizedValues['cuffSize'][locale.languageCode]; + String? get requestLeave => localizedValues['requestLeave']![locale.languageCode]; - String get patientPosition => - localizedValues['patientPosition'][locale.languageCode]; + String? get pleaseEnterDate => localizedValues['pleaseEnterDate']![locale.languageCode]; - String get fio2 => localizedValues['fio2'][locale.languageCode]; + String? get pleaseEnterNoOfDays => localizedValues['pleaseEnterNoOfDays']![locale.languageCode]; - String get sao2 => localizedValues['sao2'][locale.languageCode]; + String? get pleaseEnterRemarks => localizedValues['pleaseEnterRemarks']![locale.languageCode]; - String get painManagement => - localizedValues['painManagement'][locale.languageCode]; + String? get update => localizedValues['update']![locale.languageCode]; - String get holiday => localizedValues['holiday'][locale.languageCode]; + String? get admission => localizedValues['admission']![locale.languageCode]; - String get to => localizedValues['to'][locale.languageCode]; + String? get request => localizedValues['request']![locale.languageCode]; - String get coveringDoctor => - localizedValues['coveringDoctor'][locale.languageCode]; + String? get admissionRequest => localizedValues['admissionRequest']![locale.languageCode]; - String get requestLeave => - localizedValues['requestLeave'][locale.languageCode]; + String? get patientDetails => localizedValues['patientDetails']![locale.languageCode]; - String get pleaseEnterDate => - localizedValues['pleaseEnterDate'][locale.languageCode]; + String? get specialityAndDoctorDetail => localizedValues['specialityAndDoctorDetail']![locale.languageCode]; - String get pleaseEnterNoOfDays => - localizedValues['pleaseEnterNoOfDays'][locale.languageCode]; + String? get referringDate => localizedValues['referringDate']![locale.languageCode]; - String get pleaseEnterRemarks => - localizedValues['pleaseEnterRemarks'][locale.languageCode]; + String? get referringDoctor => localizedValues['referringDoctor']![locale.languageCode]; - String get update => localizedValues['update'][locale.languageCode]; + String? get otherInformation => localizedValues['otherInformation']![locale.languageCode]; - String get admission => localizedValues['admission'][locale.languageCode]; + String? get expectedDays => localizedValues['expectedDays']![locale.languageCode]; - String get request => localizedValues['request'][locale.languageCode]; + String? get expectedAdmissionDate => localizedValues['expectedAdmissionDate']![locale.languageCode]; - String get admissionRequest => - localizedValues['admissionRequest'][locale.languageCode]; + String? get emergencyAdmission => localizedValues['emergencyAdmission']![locale.languageCode]; + String? get isSickLeaveRequired => localizedValues['isSickLeaveRequired']![locale.languageCode]; - String get patientDetails => - localizedValues['patientDetails'][locale.languageCode]; + String? get patientPregnant => localizedValues['patientPregnant']![locale.languageCode]; - String get specialityAndDoctorDetail => - localizedValues['specialityAndDoctorDetail'][locale.languageCode]; + String? get treatmentLine => localizedValues['treatmentLine']![locale.languageCode]; - String get referringDate => - localizedValues['referringDate'][locale.languageCode]; + String? get ward => localizedValues['ward']![locale.languageCode]; - String get referringDoctor => - localizedValues['referringDoctor'][locale.languageCode]; + String? get preAnesthesiaReferred => localizedValues['preAnesthesiaReferred']![locale.languageCode]; - String get otherInformation => - localizedValues['otherInformation'][locale.languageCode]; + String? get admissionType => localizedValues['admissionType']![locale.languageCode]; - String get expectedDays => - localizedValues['expectedDays'][locale.languageCode]; + String? get diagnosis => localizedValues['diagnosis']![locale.languageCode]; - String get expectedAdmissionDate => - localizedValues['expectedAdmissionDate'][locale.languageCode]; + String? get allergies => localizedValues['allergies']![locale.languageCode]; - String get emergencyAdmission => - localizedValues['emergencyAdmission'][locale.languageCode]; - String get isSickLeaveRequired => - localizedValues['isSickLeaveRequired'][locale.languageCode]; + String? get preOperativeOrders => localizedValues['preOperativeOrders']![locale.languageCode]; - String get patientPregnant => - localizedValues['patientPregnant'][locale.languageCode]; + String? get elementForImprovement => localizedValues['elementForImprovement']![locale.languageCode]; - String get treatmentLine => - localizedValues['treatmentLine'][locale.languageCode]; + String? get dischargeDate => localizedValues['dischargeDate']![locale.languageCode]; - String get ward => localizedValues['ward'][locale.languageCode]; + String? get dietType => localizedValues['dietType']![locale.languageCode]; - String get preAnesthesiaReferred => - localizedValues['preAnesthesiaReferred'][locale.languageCode]; + String? get dietTypeRemarks => localizedValues['dietTypeRemarks']![locale.languageCode]; - String get admissionType => - localizedValues['admissionType'][locale.languageCode]; + String? get save => localizedValues['save']![locale.languageCode]; - String get diagnosis => localizedValues['diagnosis'][locale.languageCode]; + String? get postPlansEstimatedCost => localizedValues['postPlansEstimatedCost']![locale.languageCode]; + String? get postPlans => localizedValues['postPlans']![locale.languageCode]; - String get allergies => localizedValues['allergies'][locale.languageCode]; + String? get ucaf => localizedValues['ucaf']![locale.languageCode]; - String get preOperativeOrders => - localizedValues['preOperativeOrders'][locale.languageCode]; + String? get emergencyCase => localizedValues['emergencyCase']![locale.languageCode]; - String get elementForImprovement => - localizedValues['elementForImprovement'][locale.languageCode]; + String? get durationOfIllness => localizedValues['durationOfIllness']![locale.languageCode]; - String get dischargeDate => - localizedValues['dischargeDate'][locale.languageCode]; + String? get chiefComplaintsAndSymptoms => localizedValues['chiefComplaintsAndSymptoms']![locale.languageCode]; - String get dietType => localizedValues['dietType'][locale.languageCode]; + String? get patientFeelsPainInHisBackAndCough => + localizedValues['patientFeelsPainInHisBackAndCough']![locale.languageCode]; - String get dietTypeRemarks => - localizedValues['dietTypeRemarks'][locale.languageCode]; + String? get additionalTextComplaints => localizedValues['additionalTextComplaints']![locale.languageCode]; - String get save => localizedValues['save'][locale.languageCode]; + String? get otherConditions => localizedValues['otherConditions']![locale.languageCode]; - String get postPlansEstimatedCost => - localizedValues['postPlansEstimatedCost'][locale.languageCode]; - String get postPlans => localizedValues['postPlans'][locale.languageCode]; + String? get other => localizedValues['other']![locale.languageCode]; - String get ucaf => localizedValues['ucaf'][locale.languageCode]; + String? get how => localizedValues['how']![locale.languageCode]; - String get emergencyCase => - localizedValues['emergencyCase'][locale.languageCode]; + String? get when => localizedValues['when']![locale.languageCode]; - String get durationOfIllness => - localizedValues['durationOfIllness'][locale.languageCode]; + String? get where => localizedValues['where']![locale.languageCode]; - String get chiefComplaintsAndSymptoms => - localizedValues['chiefComplaintsAndSymptoms'][locale.languageCode]; + String? get specifyPossibleLineManagement => localizedValues['specifyPossibleLineManagement']![locale.languageCode]; - String get patientFeelsPainInHisBackAndCough => - localizedValues['patientFeelsPainInHisBackAndCough'][locale.languageCode]; + String? get significantSigns => localizedValues['significantSigns']![locale.languageCode]; - String get additionalTextComplaints => - localizedValues['additionalTextComplaints'][locale.languageCode]; + String? get backAbdomen => localizedValues['backAbdomen']![locale.languageCode]; - String get otherConditions => - localizedValues['otherConditions'][locale.languageCode]; + String? get reasons => localizedValues['reasons']![locale.languageCode]; - String get other => localizedValues['other'][locale.languageCode]; + String? get createNew => localizedValues['createNew']![locale.languageCode]; - String get how => localizedValues['how'][locale.languageCode]; + String? get episode => localizedValues['episode']![locale.languageCode]; - String get when => localizedValues['when'][locale.languageCode]; + String? get medications => localizedValues['medications']![locale.languageCode]; - String get where => localizedValues['where'][locale.languageCode]; + String? get procedures => localizedValues['procedures']![locale.languageCode]; - String get specifyPossibleLineManagement => - localizedValues['specifyPossibleLineManagement'][locale.languageCode]; + String? get chiefComplaints => localizedValues['chiefComplaints']![locale.languageCode]; - String get significantSigns => - localizedValues['significantSigns'][locale.languageCode]; + String? get histories => localizedValues['histories']![locale.languageCode]; - String get backAbdomen => localizedValues['backAbdomen'][locale.languageCode]; + String? get allergiesSoap => localizedValues['allergiesSoap']![locale.languageCode]; - String get reasons => localizedValues['reasons'][locale.languageCode]; + String? get addChiefComplaints => localizedValues['addChiefComplaints']![locale.languageCode]; - String get createNew => localizedValues['createNew'][locale.languageCode]; + String? get historyOfPresentIllness => localizedValues['historyOfPresentIllness']![locale.languageCode]; - String get episode => localizedValues['episode'][locale.languageCode]; + String? get requiredMsg => localizedValues['requiredMsg']![locale.languageCode]; - String get medications => localizedValues['medications'][locale.languageCode]; + String? get addHistory => localizedValues['addHistory']![locale.languageCode]; - String get procedures => localizedValues['procedures'][locale.languageCode]; + String? get searchHistory => localizedValues['searchHistory']![locale.languageCode]; - String get chiefComplaints => - localizedValues['chiefComplaints'][locale.languageCode]; + String? get addSelectedHistories => localizedValues['addSelectedHistories']![locale.languageCode]; - String get histories => localizedValues['histories'][locale.languageCode]; + String? get addAllergies => localizedValues['addAllergies']![locale.languageCode]; - String get allergiesSoap => - localizedValues['allergiesSoap'][locale.languageCode]; + String? get itemExist => localizedValues['itemExist']![locale.languageCode]; - String get addChiefComplaints => - localizedValues['addChiefComplaints'][locale.languageCode]; + String? get selectAllergy => localizedValues['selectAllergy']![locale.languageCode]; - String get historyOfPresentIllness => - localizedValues['historyOfPresentIllness'][locale.languageCode]; + String? get selectSeverity => localizedValues['selectSeverity']![locale.languageCode]; - String get requiredMsg => localizedValues['requiredMsg'][locale.languageCode]; + String? get leaveCreated => localizedValues['leaveCreated']![locale.languageCode]; - String get addHistory => localizedValues['addHistory'][locale.languageCode]; + String? get vitalSignEmptyMsg => localizedValues['vitalSignEmptyMsg']![locale.languageCode]; - String get searchHistory => - localizedValues['searchHistory'][locale.languageCode]; + String? get referralEmptyMsg => localizedValues['referralEmptyMsg']![locale.languageCode]; - String get addSelectedHistories => - localizedValues['addSelectedHistories'][locale.languageCode]; + String? get referralSuccessMsg => localizedValues['referralSuccessMsg']![locale.languageCode]; - String get addAllergies => - localizedValues['addAllergies'][locale.languageCode]; + String? get diagnoseType => localizedValues['diagnoseType']![locale.languageCode]; - String get itemExist => localizedValues['itemExist'][locale.languageCode]; + String? get condition => localizedValues['condition']![locale.languageCode]; - String get selectAllergy => - localizedValues['selectAllergy'][locale.languageCode]; + String? get id => localizedValues['id']![locale.languageCode]; - String get selectSeverity => - localizedValues['selectSeverity'][locale.languageCode]; + String? get quantity => localizedValues['quantity']![locale.languageCode]; - String get leaveCreated => - localizedValues['leaveCreated'][locale.languageCode]; + String? get durDays => localizedValues['durDays']![locale.languageCode]; - String get vitalSignEmptyMsg => - localizedValues['vitalSignEmptyMsg'][locale.languageCode]; + String? get codeNo => localizedValues['codeNo']![locale.languageCode]; - String get referralEmptyMsg => - localizedValues['referralEmptyMsg'][locale.languageCode]; + String? get covered => localizedValues['covered']![locale.languageCode]; - String get referralSuccessMsg => - localizedValues['referralSuccessMsg'][locale.languageCode]; + String? get approvalRequired => localizedValues['approvalRequired']![locale.languageCode]; - String get diagnoseType => - localizedValues['diagnoseType'][locale.languageCode]; + String? get uncoveredByDoctor => localizedValues['uncoveredByDoctor']![locale.languageCode]; - String get condition => localizedValues['condition'][locale.languageCode]; + String? get chiefComplaintEmptyMsg => localizedValues['chiefComplaintEmptyMsg']![locale.languageCode]; - String get id => localizedValues['id'][locale.languageCode]; + String? get moreVerification => localizedValues['more-verify']![locale.languageCode]; - String get quantity => localizedValues['quantity'][locale.languageCode]; + String? get welcomeBack => localizedValues['welcome-back']![locale.languageCode]; - String get durDays => localizedValues['durDays'][locale.languageCode]; + String? get accountInfo => localizedValues['account-info']![locale.languageCode]; - String get codeNo => localizedValues['codeNo'][locale.languageCode]; + String? get useAnotherAccount => localizedValues['another-acc']![locale.languageCode]; - String get covered => localizedValues['covered'][locale.languageCode]; + String? get verifyLoginWith => localizedValues['verify-login-with']![locale.languageCode]; - String get approvalRequired => - localizedValues['approvalRequired'][locale.languageCode]; + String? get register => localizedValues['register-user']![locale.languageCode]; - String get uncoveredByDoctor => - localizedValues['uncoveredByDoctor'][locale.languageCode]; + String? get verifyFingerprint => localizedValues['verify-with-fingerprint']![locale.languageCode]; - String get chiefComplaintEmptyMsg => - localizedValues['chiefComplaintEmptyMsg'][locale.languageCode]; + String? get verifyFaceID => localizedValues['verify-with-faceid']![locale.languageCode]; - String get moreVerification => - localizedValues['more-verify'][locale.languageCode]; + String? get verifySMS => localizedValues['verify-with-sms']![locale.languageCode]; + String? get verifyWith => localizedValues['verify-with']![locale.languageCode]; - String get welcomeBack => - localizedValues['welcome-back'][locale.languageCode]; + String? get verifyWhatsApp => localizedValues['verify-with-whatsapp']![locale.languageCode]; - String get accountInfo => - localizedValues['account-info'][locale.languageCode]; + String? get lastLoginAt => localizedValues['last-login']![locale.languageCode]; - String get useAnotherAccount => - localizedValues['another-acc'][locale.languageCode]; + String? get lastLoginWith => localizedValues['last-login-with']![locale.languageCode]; - String get verifyLoginWith => - localizedValues['verify-login-with'][locale.languageCode]; + String? get verifyFingerprint2 => localizedValues['verify-fingerprint']![locale.languageCode]; - String get register => localizedValues['register-user'][locale.languageCode]; + String? get verificationMessage => localizedValues['verification_message']![locale.languageCode]; - String get verifyFingerprint => - localizedValues['verify-with-fingerprint'][locale.languageCode]; + String? get validationMessage => localizedValues['validation_message']![locale.languageCode]; - String get verifyFaceID => - localizedValues['verify-with-faceid'][locale.languageCode]; + String? get addAssessment => localizedValues['addAssessment']![locale.languageCode]; - String get verifySMS => - localizedValues['verify-with-sms'][locale.languageCode]; - String get verifyWith => localizedValues['verify-with'][locale.languageCode]; + String? get assessment => localizedValues['assessment']![locale.languageCode]; - String get verifyWhatsApp => - localizedValues['verify-with-whatsapp'][locale.languageCode]; + String? get physicalSystemExamination => localizedValues['physicalSystemExamination']![locale.languageCode]; - String get lastLoginAt => localizedValues['last-login'][locale.languageCode]; + String? get searchExamination => localizedValues['searchExamination']![locale.languageCode]; - String get lastLoginWith => - localizedValues['last-login-with'][locale.languageCode]; + String? get addExamination => localizedValues['addExamination']![locale.languageCode]; - String get verifyFingerprint2 => - localizedValues['verify-fingerprint'][locale.languageCode]; + String? get doc => localizedValues['doc']![locale.languageCode]; - String get verificationMessage => - localizedValues['verification_message'][locale.languageCode]; + String? get allergicTO => localizedValues['allergicTO']![locale.languageCode]; - String get validationMessage => - localizedValues['validation_message'][locale.languageCode]; + String? get normal => localizedValues['normal']![locale.languageCode]; + String? get notExamined => localizedValues['notExamined']![locale.languageCode]; - String get addAssessment => - localizedValues['addAssessment'][locale.languageCode]; + String? get abnormal => localizedValues['abnormal']![locale.languageCode]; - String get assessment => localizedValues['assessment'][locale.languageCode]; + String? get patientNoDetailErrMsg => localizedValues['patientNoDetailErrMsg']![locale.languageCode]; - String get physicalSystemExamination => - localizedValues['physicalSystemExamination'][locale.languageCode]; + String? get systolicLng => localizedValues['systolic-lng']![locale.languageCode]; - String get searchExamination => - localizedValues['searchExamination'][locale.languageCode]; + String? get diastolicLng => localizedValues['diastolic-lng']![locale.languageCode]; - String get addExamination => - localizedValues['addExamination'][locale.languageCode]; + String? get mass => localizedValues['mass']![locale.languageCode]; - String get doc => localizedValues['doc'][locale.languageCode]; + String? get tempC => localizedValues['temp-c']![locale.languageCode]; - String get allergicTO => localizedValues['allergicTO'][locale.languageCode]; + String? get bpm => localizedValues['bpm']![locale.languageCode]; - String get normal => localizedValues['normal'][locale.languageCode]; - String get notExamined => localizedValues['notExamined'][locale.languageCode]; + String? get respirationSigns => localizedValues['respiration-signs']![locale.languageCode]; - String get abnormal => localizedValues['abnormal'][locale.languageCode]; + String? get sysDias => localizedValues['sys-dias']![locale.languageCode]; - String get patientNoDetailErrMsg => - localizedValues['patientNoDetailErrMsg'][locale.languageCode]; + String? get body => localizedValues['body']![locale.languageCode]; - String get systolicLng => - localizedValues['systolic-lng'][locale.languageCode]; + String? get respirationRate => localizedValues['respirationRate']![locale.languageCode]; - String get diastolicLng => - localizedValues['diastolic-lng'][locale.languageCode]; + String? get heart => localizedValues['heart']![locale.languageCode]; - String get mass => localizedValues['mass'][locale.languageCode]; + String? get medicalReport => localizedValues['medicalReport']![locale.languageCode]; - String get tempC => localizedValues['temp-c'][locale.languageCode]; + String? get visitDate => localizedValues['visitDate']![locale.languageCode]; - String get bpm => localizedValues['bpm'][locale.languageCode]; + String? get test => localizedValues['test']![locale.languageCode]; - String get respirationSigns => - localizedValues['respiration-signs'][locale.languageCode]; + String? get addMoreProcedure => localizedValues['addMoreProcedure']![locale.languageCode]; - String get sysDias => localizedValues['sys-dias'][locale.languageCode]; + String? get regular => localizedValues['regular']![locale.languageCode]; - String get body => localizedValues['body'][locale.languageCode]; + String? get searchProcedures => localizedValues['searchProcedures']![locale.languageCode]; - String get respirationRate => - localizedValues['respirationRate'][locale.languageCode]; + String? get procedureCategorise => localizedValues['procedureCategorise']![locale.languageCode]; - String get heart => localizedValues['heart'][locale.languageCode]; + String? get selectProcedures => localizedValues['selectProcedures']![locale.languageCode]; - String get medicalReport => - localizedValues['medicalReport'][locale.languageCode]; + String? get addSelectedProcedures => localizedValues['addSelectedProcedures']![locale.languageCode]; + String? get addProcedures => localizedValues['addProcedures']![locale.languageCode]; - String get visitDate => localizedValues['visitDate'][locale.languageCode]; + String? get updateProcedure => localizedValues['updateProcedure']![locale.languageCode]; - String get test => localizedValues['test'][locale.languageCode]; + String? get orderProcedure => localizedValues['orderProcedure']![locale.languageCode]; - String get addMoreProcedure => - localizedValues['addMoreProcedure'][locale.languageCode]; + String? get nameOrICD => localizedValues['nameOrICD']![locale.languageCode]; - String get regular => localizedValues['regular'][locale.languageCode]; + String? get dType => localizedValues['dType']![locale.languageCode]; - String get searchProcedures => - localizedValues['searchProcedures'][locale.languageCode]; + String? get addAssessmentDetails => localizedValues['addAssessmentDetails']![locale.languageCode]; - String get procedureCategorise => - localizedValues['procedureCategorise'][locale.languageCode]; + String? get progressNoteSOAP => localizedValues['progressNoteSOAP']![locale.languageCode]; - String get selectProcedures => - localizedValues['selectProcedures'][locale.languageCode]; + String? get addProgressNote => localizedValues['addProgressNote']![locale.languageCode]; - String get addSelectedProcedures => - localizedValues['addSelectedProcedures'][locale.languageCode]; - String get addProcedures => - localizedValues['addProcedures'][locale.languageCode]; + String? get createdBy => localizedValues['createdBy']![locale.languageCode]; - String get updateProcedure => - localizedValues['updateProcedure'][locale.languageCode]; + String? get editedBy => localizedValues['editedBy']![locale.languageCode]; - String get orderProcedure => - localizedValues['orderProcedure'][locale.languageCode]; + String? get currentMedications => localizedValues['currentMedications']![locale.languageCode]; - String get nameOrICD => localizedValues['nameOrICD'][locale.languageCode]; + String? get noItem => localizedValues['noItem']![locale.languageCode]; - String get dType => localizedValues['dType'][locale.languageCode]; + String? get postUcafSuccessMsg => localizedValues['postUcafSuccessMsg']![locale.languageCode]; - String get addAssessmentDetails => - localizedValues['addAssessmentDetails'][locale.languageCode]; + String? get vitalSignDetailEmpty => localizedValues['vitalSignDetailEmpty']![locale.languageCode]; - String get progressNoteSOAP => - localizedValues['progressNoteSOAP'][locale.languageCode]; + String? get onlyOfftimeHoliday => localizedValues['onlyOfftimeHoliday']![locale.languageCode]; - String get addProgressNote => - localizedValues['addProgressNote'][locale.languageCode]; + String? get active => localizedValues['active']![locale.languageCode]; - String get createdBy => localizedValues['createdBy'][locale.languageCode]; + String? get hold => localizedValues['hold']![locale.languageCode]; - String get editedBy => localizedValues['editedBy'][locale.languageCode]; + String? get loading => localizedValues['loading']![locale.languageCode]; - String get currentMedications => - localizedValues['currentMedications'][locale.languageCode]; + String? get assessmentErrorMsg => localizedValues['assessmentErrorMsg']![locale.languageCode]; - String get noItem => localizedValues['noItem'][locale.languageCode]; + String? get examinationErrorMsg => localizedValues['examinationErrorMsg']![locale.languageCode]; - String get postUcafSuccessMsg => - localizedValues['postUcafSuccessMsg'][locale.languageCode]; + String? get progressNoteErrorMsg => localizedValues['progressNoteErrorMsg']![locale.languageCode]; - String get vitalSignDetailEmpty => - localizedValues['vitalSignDetailEmpty'][locale.languageCode]; + String? get chiefComplaintErrorMsg => localizedValues['chiefComplaintErrorMsg']![locale.languageCode]; + String? get ICDName => localizedValues['ICDName']![locale.languageCode]; - String get onlyOfftimeHoliday => - localizedValues['onlyOfftimeHoliday'][locale.languageCode]; + String? get referralStatus => localizedValues['referralStatus']![locale.languageCode]; - String get active => localizedValues['active'][locale.languageCode]; + String? get referralRemark => localizedValues['referralRemark']![locale.languageCode]; + String? get offTime => localizedValues['offTime']![locale.languageCode]; - String get hold => localizedValues['hold'][locale.languageCode]; + String? get icd => localizedValues['icd']![locale.languageCode]; + String? get days => localizedValues['days']![locale.languageCode]; + String? get hr => localizedValues['hr']![locale.languageCode]; + String? get min => localizedValues['min']![locale.languageCode]; + String? get months => localizedValues['months']![locale.languageCode]; + String? get years => localizedValues['years']![locale.languageCode]; + String? get referralStatusHold => localizedValues['referralStatusHold']![locale.languageCode]; + String? get referralStatusActive => localizedValues['referralStatusActive']![locale.languageCode]; + String? get referralStatusCancelled => localizedValues['referralStatusCancelled']![locale.languageCode]; + String? get referralStatusCompleted => localizedValues['referralStatusCompleted']![locale.languageCode]; + String? get referralStatusNotSeen => localizedValues['referralStatusNotSeen']![locale.languageCode]; + String? get clinicSearch => localizedValues['clinicSearch']![locale.languageCode]; + String? get doctorSearch => localizedValues['doctorSearch']![locale.languageCode]; + String? get referralResponse => localizedValues['referralResponse']![locale.languageCode]; + String? get estimatedCost => localizedValues['estimatedCost']![locale.languageCode]; + String? get diagnosisDetail => localizedValues['diagnosisDetail']![locale.languageCode]; + String? get referralSuccessMsgAccept => localizedValues['referralSuccessMsgAccept']![locale.languageCode]; + String? get referralSuccessMsgReject => localizedValues['referralSuccessMsgReject']![locale.languageCode]; - String get loading => localizedValues['loading'][locale.languageCode]; + String? get patientName => localizedValues['patient-name']![locale.languageCode]; - String get assessmentErrorMsg => - localizedValues['assessmentErrorMsg'][locale.languageCode]; - - String get examinationErrorMsg => - localizedValues['examinationErrorMsg'][locale.languageCode]; - - String get progressNoteErrorMsg => - localizedValues['progressNoteErrorMsg'][locale.languageCode]; - - String get chiefComplaintErrorMsg => - localizedValues['chiefComplaintErrorMsg'][locale.languageCode]; - String get ICDName => localizedValues['ICDName'][locale.languageCode]; - - String get referralStatus => - localizedValues['referralStatus'][locale.languageCode]; - - String get referralRemark => - localizedValues['referralRemark'][locale.languageCode]; - String get offTime => localizedValues['offTime'][locale.languageCode]; - - String get icd => localizedValues['icd'][locale.languageCode]; - String get days => localizedValues['days'][locale.languageCode]; - String get hr => localizedValues['hr'][locale.languageCode]; - String get min => localizedValues['min'][locale.languageCode]; - String get months => localizedValues['months'][locale.languageCode]; - String get years => localizedValues['years'][locale.languageCode]; - String get referralStatusHold => - localizedValues['referralStatusHold'][locale.languageCode]; - String get referralStatusActive => - localizedValues['referralStatusActive'][locale.languageCode]; - String get referralStatusCancelled => - localizedValues['referralStatusCancelled'][locale.languageCode]; - String get referralStatusCompleted => - localizedValues['referralStatusCompleted'][locale.languageCode]; - String get referralStatusNotSeen => - localizedValues['referralStatusNotSeen'][locale.languageCode]; - String get clinicSearch => - localizedValues['clinicSearch'][locale.languageCode]; - String get doctorSearch => - localizedValues['doctorSearch'][locale.languageCode]; - String get referralResponse => - localizedValues['referralResponse'][locale.languageCode]; - String get estimatedCost => - localizedValues['estimatedCost'][locale.languageCode]; - String get diagnosisDetail => - localizedValues['diagnosisDetail'][locale.languageCode]; - String get referralSuccessMsgAccept => - localizedValues['referralSuccessMsgAccept'][locale.languageCode]; - String get referralSuccessMsgReject => - localizedValues['referralSuccessMsgReject'][locale.languageCode]; - - String get patientName => - localizedValues['patient-name'][locale.languageCode]; - - String get appointmentNumber => - localizedValues['appointmentNumber'][locale.languageCode]; - String get sickLeaveComments => - localizedValues['sickLeaveComments'][locale.languageCode]; - String get pastMedicalHistory => - localizedValues['pastMedicalHistory'][locale.languageCode]; - String get pastSurgicalHistory => - localizedValues['pastSurgicalHistory'][locale.languageCode]; - String get complications => - localizedValues['complications'][locale.languageCode]; - String get floor => localizedValues['floor'][locale.languageCode]; - String get roomCategory => - localizedValues['roomCategory'][locale.languageCode]; - String get otherDepartmentsInterventions => - localizedValues['otherDepartmentsInterventions'][locale.languageCode]; - String get otherProcedure => - localizedValues['otherProcedure'][locale.languageCode]; - String get admissionRequestSuccessMsg => - localizedValues['admissionRequestSuccessMsg'][locale.languageCode]; - String get infoStatus => localizedValues['infoStatus'][locale.languageCode]; - String get doctorResponse => - localizedValues['doctorResponse'][locale.languageCode]; - String get sickleaveonhold => - localizedValues['sickleaveonhold'][locale.languageCode]; - String get noClinic => localizedValues['no-clinic'][locale.languageCode]; - - String get otherStatistic => - localizedValues['otherStatistic'][locale.languageCode]; - - String get patientsreferral => - localizedValues['ptientsreferral'][locale.languageCode]; - String get myPatientsReferral => - localizedValues['myPatientsReferral'][locale.languageCode]; - String get arrivalpatient => - localizedValues['arrivalpatient'][locale.languageCode]; - String get searchmedicinepatient => - localizedValues['searchmedicinepatient'][locale.languageCode]; - String get appointmentDate => - localizedValues['appointmentDate'][locale.languageCode]; - String get arrivedP => localizedValues['arrived_p'][locale.languageCode]; - - String get details => localizedValues['details'][locale.languageCode]; - String get liveCare => localizedValues['liveCare'][locale.languageCode]; - String get outpatient => localizedValues['out-patient'][locale.languageCode]; - String get billNo => localizedValues['BillNo'][locale.languageCode]; - String get labResults => localizedValues['labResults'][locale.languageCode]; - String get sendSuc => localizedValues['sendSuc'][locale.languageCode]; - String get specialResult => - localizedValues['SpecialResult'][locale.languageCode]; - String get noDataAvailable => - localizedValues['noDataAvailable'][locale.languageCode]; - String get showMoreBtn => - localizedValues['show-more-btn'][locale.languageCode]; - String get showDetail => localizedValues['showDetail'][locale.languageCode]; - String get viewProfile => localizedValues['viewProfile'][locale.languageCode]; - - String get fileNumber => localizedValues['fileNumber'][locale.languageCode]; - String get reschedule => localizedValues['reschedule'][locale.languageCode]; - String get leaves => localizedValues['leaves'][locale.languageCode]; - String get openRad => localizedValues['open-rad'][locale.languageCode]; - - String get totalApproval => - localizedValues['totalApproval'][locale.languageCode]; - String get procedureStatus => - localizedValues['procedureStatus'][locale.languageCode]; - String get unusedCount => localizedValues['unusedCount'][locale.languageCode]; - String get companyName => localizedValues['companyName'][locale.languageCode]; - String get procedureName => - localizedValues['procedureName'][locale.languageCode]; - String get usageStatus => localizedValues['usageStatus'][locale.languageCode]; - String get prescriptions => - localizedValues['prescriptions'][locale.languageCode]; - String get notes => localizedValues['notes'][locale.languageCode]; - String get dailyDoses => localizedValues['dailyDoses'][locale.languageCode]; - String get searchWithOther => - localizedValues['searchWithOther'][locale.languageCode]; - String get hideOtherCriteria => - localizedValues['hideOtherCriteria'][locale.languageCode]; - String get applyForReschedule => - localizedValues['applyForReschedule'][locale.languageCode]; - - String get startDate => localizedValues['startDate'][locale.languageCode]; - String get endDate => localizedValues['endDate'][locale.languageCode]; - - String get addReschedule => - localizedValues['add-reschedule'][locale.languageCode]; - String get updateReschedule => - localizedValues['update-reschedule'][locale.languageCode]; - String get sickLeave => localizedValues['sick_leave'][locale.languageCode]; - String get accepted => localizedValues['accepted'][locale.languageCode]; - String get cancelled => localizedValues['cancelled'][locale.languageCode]; - String get unReplied => localizedValues['unReplied'][locale.languageCode]; - String get replied => localizedValues['replied'][locale.languageCode]; - String get typeHereToReply => - localizedValues['typeHereToReply'][locale.languageCode]; - String get searchHere => localizedValues['searchHere'][locale.languageCode]; - String get remove => localizedValues['remove'][locale.languageCode]; - String get inProgress => localizedValues['inProgress'][locale.languageCode]; - String get completed => localizedValues['Completed'][locale.languageCode]; - String get locked => localizedValues['Locked'][locale.languageCode]; - - String get step => localizedValues['step'][locale.languageCode]; - String get fieldRequired => - localizedValues['fieldRequired'][locale.languageCode]; - String get noSickLeave => localizedValues['no-sickleve'][locale.languageCode]; - String get changeOfSchedule => - localizedValues['changeOfSchedule'][locale.languageCode]; - String get newSchedule => localizedValues['newSchedule'][locale.languageCode]; - String get enterCredentials => - localizedValues['enter_credentials'][locale.languageCode]; - String get patpatientIDMobilenationalientID => - localizedValues['patientIDMobilenational'][locale.languageCode]; - - String get updateNow => localizedValues['updateNow'][locale.languageCode]; - String get updateTheApp => - localizedValues['updateTheApp'][locale.languageCode]; - String get admissionDate => - localizedValues['admission-date'][locale.languageCode]; - String get noOfDays => localizedValues['noOfDays'][locale.languageCode]; - String get numOfDays => localizedValues['numOfDays'][locale.languageCode]; - String get replayBefore => - localizedValues['replayBefore'][locale.languageCode]; - String get trySaying => localizedValues["try-saying"][locale.languageCode]; - String get acknowledged => - localizedValues['acknowledged'][locale.languageCode]; - String get didntCatch => localizedValues["didntCatch"][locale.languageCode]; - String get pleaseEnterProcedure => - localizedValues["pleaseEnterProcedure"][locale.languageCode]; - String get fillTheMandatoryProcedureDetails => - localizedValues["fillTheMandatoryProcedureDetails"][locale.languageCode]; - String get atLeastThreeCharacters => - localizedValues["atLeastThreeCharacters"][locale.languageCode]; - String get searchProcedureHere => - localizedValues["searchProcedureHere"][locale.languageCode]; - String get noInsuranceApprovalFound => - localizedValues["noInsuranceApprovalFound"][locale.languageCode]; - String get procedure => localizedValues["procedure"][locale.languageCode]; - String get stopDate => localizedValues["stopDate"][locale.languageCode]; - String get processed => localizedValues["processed"][locale.languageCode]; - String get direction => localizedValues["direction"][locale.languageCode]; - String get refill => localizedValues["refill"][locale.languageCode]; - String get medicationHasBeenAdded => - localizedValues["medicationHasBeenAdded"][locale.languageCode]; - String get newPrescriptionOrder => - localizedValues["newPrescriptionOrder"][locale.languageCode]; - String get pleaseFillAllFields => - localizedValues["pleaseFillAllFields"][locale.languageCode]; - String get narcoticMedicineCanOnlyBePrescribedFromVida => - localizedValues["narcoticMedicineCanOnlyBePrescribedFromVida"] - [locale.languageCode]; - String get only5DigitsAllowedForStrength => - localizedValues["only5DigitsAllowedForStrength"][locale.languageCode]; - String get unit => localizedValues["unit"][locale.languageCode]; - String get boxQuantity => localizedValues["boxQuantity"][locale.languageCode]; - String get orderTestOr => localizedValues["orderTestOr"][locale.languageCode]; - String get applyForRadiologyOrder => - localizedValues["applyForRadiologyOrder"][locale.languageCode]; - String get applyForNewLabOrder => - localizedValues["applyForNewLabOrder"][locale.languageCode]; - String get addLabOrder => localizedValues["addLabOrder"][locale.languageCode]; - String get addRadiologyOrder => - localizedValues["addRadiologyOrder"][locale.languageCode]; - String get newRadiologyOrder => - localizedValues["newRadiologyOrder"][locale.languageCode]; - String get orderDate => localizedValues["orderDate"][locale.languageCode]; - String get examType => localizedValues["examType"][locale.languageCode]; - String get health => localizedValues["health"][locale.languageCode]; - String get summary => localizedValues["summary"][locale.languageCode]; - String get applyForNewPrescriptionsOrder => - localizedValues["applyForNewPrescriptionsOrder"][locale.languageCode]; - String get noPrescriptionsFound => - localizedValues["noPrescriptionsFound"][locale.languageCode]; - String get noMedicalFileFound => - localizedValues["noMedicalFileFound"][locale.languageCode]; - String get insurance22 => localizedValues["insurance22"][locale.languageCode]; - String get approvals22 => localizedValues["approvals22"][locale.languageCode]; - String get severe => localizedValues["severe"][locale.languageCode]; - String get graphDetails => - localizedValues["graphDetails"][locale.languageCode]; - String get discharged => localizedValues["discharged"][locale.languageCode]; - String get addNewOrderSheet => - localizedValues["addNewOrderSheet"][locale.languageCode]; - String get addNewProgressNote => - localizedValues["addNewProgressNote"][locale.languageCode]; - String get notePending => localizedValues["notePending"][locale.languageCode]; - String get noteCanceled => - localizedValues["noteCanceled"][locale.languageCode]; - String get noteVerified => - localizedValues["noteVerified"][locale.languageCode]; - String get noteVerify => localizedValues["noteVerify"][locale.languageCode]; - String get noteConfirm => localizedValues["noteConfirm"][locale.languageCode]; - String get noteAdd => localizedValues["noteAdd"][locale.languageCode]; - - String get noteUpdate => localizedValues["noteUpdate"][locale.languageCode]; - - String get orderSheet => localizedValues["orderSheet"][locale.languageCode]; - String get order => localizedValues["order"][locale.languageCode]; - String get sheet => localizedValues["sheet"][locale.languageCode]; - String get medical => localizedValues["medical"][locale.languageCode]; - String get report => localizedValues["report"][locale.languageCode]; - String get discharge => localizedValues["discharge"][locale.languageCode]; - String get none => localizedValues["none"][locale.languageCode]; - String get notRepliedYet => - localizedValues["notRepliedYet"][locale.languageCode]; - String get clearText => localizedValues["clearText"][locale.languageCode]; - String get medicalReportAdd => - localizedValues['medicalReportAdd'][locale.languageCode]; - String get medicalReportVerify => - localizedValues['medicalReportVerify'][locale.languageCode]; - String get comments => localizedValues['comments'][locale.languageCode]; - String get initiateCall => - localizedValues['initiateCall'][locale.languageCode]; - String get endCall => localizedValues['endCall'][locale.languageCode]; - - String get transferTo => localizedValues['transferTo'][locale.languageCode]; - String get admin => localizedValues['admin'][locale.languageCode]; - String get instructions => - localizedValues['instructions'][locale.languageCode]; - String get sendLC => localizedValues['sendLC'][locale.languageCode]; - String get endLC => localizedValues['endLC'][locale.languageCode]; - String get consultation => - localizedValues['consultation'][locale.languageCode]; - String get resume => localizedValues['resume'][locale.languageCode]; - String get theCall => localizedValues['theCall'][locale.languageCode]; - String get createNewMedicalReport => - localizedValues['createNewMedicalReport'][locale.languageCode]; - String get historyPhysicalFinding => - localizedValues['historyPhysicalFinding'][locale.languageCode]; - String get laboratoryPhysicalData => - localizedValues['laboratoryPhysicalData'][locale.languageCode]; - String get impressionRecommendation => - localizedValues['impressionRecommendation'][locale.languageCode]; - String get onHold => localizedValues['onHold'][locale.languageCode]; - String get verified => localizedValues['verified'][locale.languageCode]; - String get favoriteTemplates => - localizedValues['favoriteTemplates'][locale.languageCode]; - String get allProcedures => - localizedValues['allProcedures'][locale.languageCode]; - String get allRadiology => - localizedValues['allRadiology'][locale.languageCode]; - String get allLab => localizedValues['allLab'][locale.languageCode]; - String get allPrescription => - localizedValues['allPrescription'][locale.languageCode]; - String get addPrescription => - localizedValues['addPrescription'][locale.languageCode]; - String get edit => localizedValues['edit'][locale.languageCode]; - String get summeryReply => - localizedValues['summeryReply'][locale.languageCode]; - String get severityValidationError => - localizedValues['severityValidationError'][locale.languageCode]; - String get textCopiedSuccessfully => - localizedValues['textCopiedSuccessfully'][locale.languageCode]; - String get roomNo => localizedValues['roomNo'][locale.languageCode]; - String get seeMore => localizedValues['seeMore'][locale.languageCode]; - String get replayCallStatus => - localizedValues['replayCallStatus'][locale.languageCode]; - String get patientArrived => - localizedValues['patientArrived'][locale.languageCode]; - String get calledAndNoResponse => - localizedValues['calledAndNoResponse'][locale.languageCode]; - String get underProcess => - localizedValues['underProcess'][locale.languageCode]; - String get textResponse => - localizedValues['textResponse'][locale.languageCode]; - String get special => localizedValues['special'][locale.languageCode]; - String get requestType => localizedValues['requestType'][locale.languageCode]; - String get allClinic => localizedValues['allClinic'][locale.languageCode]; - String get notReplied => localizedValues['notReplied'][locale.languageCode]; - String get registerNewPatient => - localizedValues['registerNewPatient'][locale.languageCode]; - String get registeraPatient => - localizedValues['registeraPatient'][locale.languageCode]; - String get operationTimeStart => - localizedValues['operationTimeStart'][locale.languageCode]; - String get operationDate => - localizedValues['operationDate'][locale.languageCode]; - String get reservation => localizedValues['reservation'][locale.languageCode]; - String get anesthetist => localizedValues['anesthetist'][locale.languageCode]; - String get bloodTransfusedDetail => - localizedValues['bloodTransfusedDetail'][locale.languageCode]; - String get circulatingNurse => - localizedValues['circulatingNurse'][locale.languageCode]; - String get scrubNurse => localizedValues['scrubNurse'][locale.languageCode]; - String get otherSpecimen => - localizedValues['otherSpecimen'][locale.languageCode]; - String get microbiologySpecimen => - localizedValues['microbiologySpecimen'][locale.languageCode]; - String get histopathSpecimen => - localizedValues['histopathSpecimen'][locale.languageCode]; - String get bloodLossDetail => - localizedValues['bloodLossDetail'][locale.languageCode]; - String get complicationDetails1 => - localizedValues['complicationDetails1'][locale.languageCode]; - String get postOperationInstruction => - localizedValues['postOperationInstruction'][locale.languageCode]; - String get surgeryProcedure => - localizedValues['surgeryProcedure'][locale.languageCode]; - String get finding => localizedValues['finding'][locale.languageCode]; - String get preOperationDiagnosis => - localizedValues['preOperationDiagnosis'][locale.languageCode]; - String get postOperationDiagnosis => - localizedValues['postOperationDiagnosis'][locale.languageCode]; - String get surgeon => localizedValues['surgeon'][locale.languageCode]; - String get assistant => localizedValues['assistant'][locale.languageCode]; - String get askForIdentification => - localizedValues['askForIdentification'][locale.languageCode]; - String get iDNumber => localizedValues['iDNumber'][locale.languageCode]; - String get calender => localizedValues['calender'][locale.languageCode]; - String get gregorian => localizedValues['gregorian'][locale.languageCode]; - String get hijri => localizedValues['hijri'][locale.languageCode]; - String get birthdate => localizedValues['birthdate'][locale.languageCode]; - String get activation => localizedValues['activation'][locale.languageCode]; - String get confirmation => - localizedValues['confirmation'][locale.languageCode]; - String get diabetic => localizedValues['diabetic'][locale.languageCode]; - String get chart => localizedValues['chart'][locale.languageCode]; - - String get investigation => - localizedValues['investigation'][locale.languageCode]; - String get conditionOnDischarge => - localizedValues['conditionOnDischarge'][locale.languageCode]; - String get planedProcedure => - localizedValues['planedProcedure'][locale.languageCode]; - String get moreDetails => localizedValues['moreDetails'][locale.languageCode]; + String? get appointmentNumber => localizedValues['appointmentNumber']![locale.languageCode]; + String? get sickLeaveComments => localizedValues['sickLeaveComments']![locale.languageCode]; + String? get pastMedicalHistory => localizedValues['pastMedicalHistory']![locale.languageCode]; + String? get pastSurgicalHistory => localizedValues['pastSurgicalHistory']![locale.languageCode]; + String? get complications => localizedValues['complications']![locale.languageCode]; + String? get floor => localizedValues['floor']![locale.languageCode]; + String? get roomCategory => localizedValues['roomCategory']![locale.languageCode]; + String? get otherDepartmentsInterventions => localizedValues['otherDepartmentsInterventions']![locale.languageCode]; + String? get otherProcedure => localizedValues['otherProcedure']![locale.languageCode]; + String? get admissionRequestSuccessMsg => localizedValues['admissionRequestSuccessMsg']![locale.languageCode]; + String? get infoStatus => localizedValues['infoStatus']![locale.languageCode]; + String? get doctorResponse => localizedValues['doctorResponse']![locale.languageCode]; + String? get sickleaveonhold => localizedValues['sickleaveonhold']![locale.languageCode]; + String? get noClinic => localizedValues['no-clinic']![locale.languageCode]; + + String? get otherStatistic => localizedValues['otherStatistic']![locale.languageCode]; + + String? get patientsreferral => localizedValues['ptientsreferral']![locale.languageCode]; + String? get myPatientsReferral => localizedValues['myPatientsReferral']![locale.languageCode]; + String? get arrivalpatient => localizedValues['arrivalpatient']![locale.languageCode]; + String? get searchmedicinepatient => localizedValues['searchmedicinepatient']![locale.languageCode]; + String? get appointmentDate => localizedValues['appointmentDate']![locale.languageCode]; + String? get arrivedP => localizedValues['arrived_p']![locale.languageCode]; + + String? get details => localizedValues['details']![locale.languageCode]; + String? get liveCare => localizedValues['liveCare']![locale.languageCode]; + String? get outpatient => localizedValues['out-patient']![locale.languageCode]; + String? get billNo => localizedValues['BillNo']![locale.languageCode]; + String? get labResults => localizedValues['labResults']![locale.languageCode]; + String? get sendSuc => localizedValues['sendSuc']![locale.languageCode]; + String? get specialResult => localizedValues['SpecialResult']![locale.languageCode]; + String? get noDataAvailable => localizedValues['noDataAvailable']![locale.languageCode]; + String? get showMoreBtn => localizedValues['show-more-btn']![locale.languageCode]; + String? get showDetail => localizedValues['showDetail']![locale.languageCode]; + String? get viewProfile => localizedValues['viewProfile']![locale.languageCode]; + + String? get fileNumber => localizedValues['fileNumber']![locale.languageCode]; + String? get reschedule => localizedValues['reschedule']![locale.languageCode]; + String? get leaves => localizedValues['leaves']![locale.languageCode]; + String? get openRad => localizedValues['open-rad']![locale.languageCode]; + + String? get totalApproval => localizedValues['totalApproval']![locale.languageCode]; + String? get procedureStatus => localizedValues['procedureStatus']![locale.languageCode]; + String? get unusedCount => localizedValues['unusedCount']![locale.languageCode]; + String? get companyName => localizedValues['companyName']![locale.languageCode]; + String? get procedureName => localizedValues['procedureName']![locale.languageCode]; + String? get usageStatus => localizedValues['usageStatus']![locale.languageCode]; + String? get prescriptions => localizedValues['prescriptions']![locale.languageCode]; + String? get notes => localizedValues['notes']![locale.languageCode]; + String? get dailyDoses => localizedValues['dailyDoses']![locale.languageCode]; + String? get searchWithOther => localizedValues['searchWithOther']![locale.languageCode]; + String? get hideOtherCriteria => localizedValues['hideOtherCriteria']![locale.languageCode]; + String? get applyForReschedule => localizedValues['applyForReschedule']![locale.languageCode]; + + String? get startDate => localizedValues['startDate']![locale.languageCode]; + String? get endDate => localizedValues['endDate']![locale.languageCode]; + + String? get addReschedule => localizedValues['add-reschedule']![locale.languageCode]; + String? get updateReschedule => localizedValues['update-reschedule']![locale.languageCode]; + String? get sickLeave => localizedValues['sick_leave']![locale.languageCode]; + String? get accepted => localizedValues['accepted']![locale.languageCode]; + String? get cancelled => localizedValues['cancelled']![locale.languageCode]; + String? get unReplied => localizedValues['unReplied']![locale.languageCode]; + String? get replied => localizedValues['replied']![locale.languageCode]; + String? get typeHereToReply => localizedValues['typeHereToReply']![locale.languageCode]; + String? get searchHere => localizedValues['searchHere']![locale.languageCode]; + String? get remove => localizedValues['remove']![locale.languageCode]; + String? get inProgress => localizedValues['inProgress']![locale.languageCode]; + String? get completed => localizedValues['Completed']![locale.languageCode]; + String? get locked => localizedValues['Locked']![locale.languageCode]; + + String? get step => localizedValues['step']![locale.languageCode]; + String? get fieldRequired => localizedValues['fieldRequired']![locale.languageCode]; + String? get noSickLeave => localizedValues['no-sickleve']![locale.languageCode]; + String? get changeOfSchedule => localizedValues['changeOfSchedule']![locale.languageCode]; + String? get newSchedule => localizedValues['newSchedule']![locale.languageCode]; + String? get enterCredentials => localizedValues['enter_credentials']![locale.languageCode]; + String? get patpatientIDMobilenationalientID => localizedValues['patientIDMobilenational']![locale.languageCode]; + + String? get updateNow => localizedValues['updateNow']![locale.languageCode]; + String? get updateTheApp => localizedValues['updateTheApp']![locale.languageCode]; + String? get admissionDate => localizedValues['admission-date']![locale.languageCode]; + String? get noOfDays => localizedValues['noOfDays']![locale.languageCode]; + String? get numOfDays => localizedValues['numOfDays']![locale.languageCode]; + String? get replayBefore => localizedValues['replayBefore']![locale.languageCode]; + String? get trySaying => localizedValues["try-saying"]![locale.languageCode]; + String? get acknowledged => localizedValues['acknowledged']![locale.languageCode]; + String? get didntCatch => localizedValues["didntCatch"]![locale.languageCode]; + String? get pleaseEnterProcedure => localizedValues["pleaseEnterProcedure"]![locale.languageCode]; + String? get fillTheMandatoryProcedureDetails => + localizedValues["fillTheMandatoryProcedureDetails"]![locale.languageCode]; + String? get atLeastThreeCharacters => localizedValues["atLeastThreeCharacters"]![locale.languageCode]; + String? get searchProcedureHere => localizedValues["searchProcedureHere"]![locale.languageCode]; + String? get noInsuranceApprovalFound => localizedValues["noInsuranceApprovalFound"]![locale.languageCode]; + String? get procedure => localizedValues["procedure"]![locale.languageCode]; + String? get stopDate => localizedValues["stopDate"]![locale.languageCode]; + String? get processed => localizedValues["processed"]![locale.languageCode]; + String? get direction => localizedValues["direction"]![locale.languageCode]; + String? get refill => localizedValues["refill"]![locale.languageCode]; + String? get medicationHasBeenAdded => localizedValues["medicationHasBeenAdded"]![locale.languageCode]; + String? get newPrescriptionOrder => localizedValues["newPrescriptionOrder"]![locale.languageCode]; + String? get pleaseFillAllFields => localizedValues["pleaseFillAllFields"]![locale.languageCode]; + String? get narcoticMedicineCanOnlyBePrescribedFromVida => + localizedValues["narcoticMedicineCanOnlyBePrescribedFromVida"]![locale.languageCode]; + String? get only5DigitsAllowedForStrength => localizedValues["only5DigitsAllowedForStrength"]![locale.languageCode]; + String? get unit => localizedValues["unit"]![locale.languageCode]; + String? get boxQuantity => localizedValues["boxQuantity"]![locale.languageCode]; + String? get orderTestOr => localizedValues["orderTestOr"]![locale.languageCode]; + String? get applyForRadiologyOrder => localizedValues["applyForRadiologyOrder"]![locale.languageCode]; + String? get applyForNewLabOrder => localizedValues["applyForNewLabOrder"]![locale.languageCode]; + String? get addLabOrder => localizedValues["addLabOrder"]![locale.languageCode]; + String? get addRadiologyOrder => localizedValues["addRadiologyOrder"]![locale.languageCode]; + String? get newRadiologyOrder => localizedValues["newRadiologyOrder"]![locale.languageCode]; + String? get orderDate => localizedValues["orderDate"]![locale.languageCode]; + String? get examType => localizedValues["examType"]![locale.languageCode]; + String? get health => localizedValues["health"]![locale.languageCode]; + String? get summary => localizedValues["summary"]![locale.languageCode]; + String? get applyForNewPrescriptionsOrder => localizedValues["applyForNewPrescriptionsOrder"]![locale.languageCode]; + String? get noPrescriptionsFound => localizedValues["noPrescriptionsFound"]![locale.languageCode]; + String? get noMedicalFileFound => localizedValues["noMedicalFileFound"]![locale.languageCode]; + String? get insurance22 => localizedValues["insurance22"]![locale.languageCode]; + String? get approvals22 => localizedValues["approvals22"]![locale.languageCode]; + String? get severe => localizedValues["severe"]![locale.languageCode]; + String? get graphDetails => localizedValues["graphDetails"]![locale.languageCode]; + String? get discharged => localizedValues["discharged"]![locale.languageCode]; + String? get addNewOrderSheet => localizedValues["addNewOrderSheet"]![locale.languageCode]; + String? get addNewProgressNote => localizedValues["addNewProgressNote"]![locale.languageCode]; + String? get notePending => localizedValues["notePending"]![locale.languageCode]; + String? get noteCanceled => localizedValues["noteCanceled"]![locale.languageCode]; + String? get noteVerified => localizedValues["noteVerified"]![locale.languageCode]; + String? get noteVerify => localizedValues["noteVerify"]![locale.languageCode]; + String? get noteConfirm => localizedValues["noteConfirm"]![locale.languageCode]; + String? get noteAdd => localizedValues["noteAdd"]![locale.languageCode]; + + String? get noteUpdate => localizedValues["noteUpdate"]![locale.languageCode]; + + String? get orderSheet => localizedValues["orderSheet"]![locale.languageCode]; + String? get order => localizedValues["order"]![locale.languageCode]; + String? get sheet => localizedValues["sheet"]![locale.languageCode]; + String? get medical => localizedValues["medical"]![locale.languageCode]; + String? get report => localizedValues["report"]![locale.languageCode]; + String? get discharge => localizedValues["discharge"]![locale.languageCode]; + String? get none => localizedValues["none"]![locale.languageCode]; + String? get notRepliedYet => localizedValues["notRepliedYet"]![locale.languageCode]; + String? get clearText => localizedValues["clearText"]![locale.languageCode]; + String? get medicalReportAdd => localizedValues['medicalReportAdd']![locale.languageCode]; + String? get medicalReportVerify => localizedValues['medicalReportVerify']![locale.languageCode]; + String? get comments => localizedValues['comments']![locale.languageCode]; + String? get initiateCall => localizedValues['initiateCall']![locale.languageCode]; + String? get endCall => localizedValues['endCall']![locale.languageCode]; + + String? get transferTo => localizedValues['transferTo']![locale.languageCode]; + String? get admin => localizedValues['admin']![locale.languageCode]; + String? get instructions => localizedValues['instructions']![locale.languageCode]; + String? get sendLC => localizedValues['sendLC']![locale.languageCode]; + String? get endLC => localizedValues['endLC']![locale.languageCode]; + String? get consultation => localizedValues['consultation']![locale.languageCode]; + String? get resume => localizedValues['resume']![locale.languageCode]; + String? get theCall => localizedValues['theCall']![locale.languageCode]; + String? get createNewMedicalReport => localizedValues['createNewMedicalReport']![locale.languageCode]; + String? get historyPhysicalFinding => localizedValues['historyPhysicalFinding']![locale.languageCode]; + String? get laboratoryPhysicalData => localizedValues['laboratoryPhysicalData']![locale.languageCode]; + String? get impressionRecommendation => localizedValues['impressionRecommendation']![locale.languageCode]; + String? get onHold => localizedValues['onHold']![locale.languageCode]; + String? get verified => localizedValues['verified']![locale.languageCode]; + String? get favoriteTemplates => localizedValues['favoriteTemplates']![locale.languageCode]; + String? get allProcedures => localizedValues['allProcedures']![locale.languageCode]; + String? get allRadiology => localizedValues['allRadiology']![locale.languageCode]; + String? get allLab => localizedValues['allLab']![locale.languageCode]; + String? get allPrescription => localizedValues['allPrescription']![locale.languageCode]; + String? get addPrescription => localizedValues['addPrescription']![locale.languageCode]; + String? get edit => localizedValues['edit']![locale.languageCode]; + String? get summeryReply => localizedValues['summeryReply']![locale.languageCode]; + String? get severityValidationError => localizedValues['severityValidationError']![locale.languageCode]; + String? get textCopiedSuccessfully => localizedValues['textCopiedSuccessfully']![locale.languageCode]; + String? get roomNo => localizedValues['roomNo']![locale.languageCode]; + String? get seeMore => localizedValues['seeMore']![locale.languageCode]; + String? get replayCallStatus => localizedValues['replayCallStatus']![locale.languageCode]; + String? get patientArrived => localizedValues['patientArrived']![locale.languageCode]; + String? get calledAndNoResponse => localizedValues['calledAndNoResponse']![locale.languageCode]; + String? get underProcess => localizedValues['underProcess']![locale.languageCode]; + String? get textResponse => localizedValues['textResponse']![locale.languageCode]; + String? get special => localizedValues['special']![locale.languageCode]; + String? get requestType => localizedValues['requestType']![locale.languageCode]; + String? get allClinic => localizedValues['allClinic']![locale.languageCode]; + String? get notReplied => localizedValues['notReplied']![locale.languageCode]; + String? get registerNewPatient => localizedValues['registerNewPatient']![locale.languageCode]; + String? get registeraPatient => localizedValues['registeraPatient']![locale.languageCode]; + String? get operationTimeStart => + localizedValues['operationTimeStart']![locale.languageCode]; + String? get operationDate => + localizedValues['operationDate']![locale.languageCode]; + String? get reservation => localizedValues['reservation']![locale.languageCode]; + String? get anesthetist => localizedValues['anesthetist']![locale.languageCode]; + String? get bloodTransfusedDetail => + localizedValues['bloodTransfusedDetail']![locale.languageCode]; + String? get circulatingNurse => + localizedValues['circulatingNurse']![locale.languageCode]; + String? get scrubNurse => localizedValues['scrubNurse']![locale.languageCode]; + String? get otherSpecimen => + localizedValues['otherSpecimen']![locale.languageCode]; + String? get microbiologySpecimen => + localizedValues['microbiologySpecimen']![locale.languageCode]; + String? get histopathSpecimen => + localizedValues['histopathSpecimen']![locale.languageCode]; + String? get bloodLossDetail => + localizedValues['bloodLossDetail']![locale.languageCode]; + String? get complicationDetails1 => + localizedValues['complicationDetails1']![locale.languageCode]; + String? get postOperationInstruction => + localizedValues['postOperationInstruction']![locale.languageCode]; + String? get surgeryProcedure => + localizedValues['surgeryProcedure']![locale.languageCode]; + String? get finding => localizedValues['finding']![locale.languageCode]; + String? get preOperationDiagnosis => + localizedValues['preOperationDiagnosis']![locale.languageCode]; + String? get postOperationDiagnosis => + localizedValues['postOperationDiagnosis']![locale.languageCode]; + String? get surgeon => localizedValues['surgeon']![locale.languageCode]; + String? get assistant => localizedValues['assistant']![locale.languageCode]; + String? get askForIdentification => + localizedValues['askForIdentification']![locale.languageCode]; + String? get iDNumber => localizedValues['iDNumber']![locale.languageCode]; + String? get calender => localizedValues['calender']![locale.languageCode]; + String? get gregorian => localizedValues['gregorian']![locale.languageCode]; + String? get hijri => localizedValues['hijri']![locale.languageCode]; + String? get birthdate => localizedValues['birthdate']![locale.languageCode]; + String? get activation => localizedValues['activation']![locale.languageCode]; + String? get confirmation => + localizedValues['confirmation']![locale.languageCode]; + String? get diabetic => localizedValues['diabetic']![locale.languageCode]; + String? get chart => localizedValues['chart']![locale.languageCode]; + + String? get investigation => + localizedValues['investigation']![locale.languageCode]; + String? get conditionOnDischarge => + localizedValues['conditionOnDischarge']![locale.languageCode]; + String? get planedProcedure => + localizedValues['planedProcedure']![locale.languageCode]; + String? get moreDetails => localizedValues['moreDetails']![locale.languageCode]; } class TranslationBaseDelegate extends LocalizationsDelegate { diff --git a/lib/widgets/auth/method_type_card.dart b/lib/widgets/auth/method_type_card.dart index 76b42d63..24649efc 100644 --- a/lib/widgets/auth/method_type_card.dart +++ b/lib/widgets/auth/method_type_card.dart @@ -71,11 +71,11 @@ import 'package:hexcolor/hexcolor.dart'; class MethodTypeCard extends StatelessWidget { const MethodTypeCard({ - Key ? key, - this.assetPath, - this.onTap, - this.label, - this.height = 20, this.isSvg = true, + Key? key, + required this.assetPath, + required this.onTap, + required this.label, + this.height = 20, this.isSvg =true, }) : super(key: key); final String assetPath; final GestureTapCallback onTap; diff --git a/lib/widgets/auth/sms-popup.dart b/lib/widgets/auth/sms-popup.dart index 4e99d316..10707afc 100644 --- a/lib/widgets/auth/sms-popup.dart +++ b/lib/widgets/auth/sms-popup.dart @@ -16,7 +16,7 @@ class SMSOTP { final Function onFailure; final context; - int remainingTime = 600; + late int remainingTime = 600; SMSOTP( this.context, @@ -26,7 +26,7 @@ class SMSOTP { this.onFailure, ); - final verifyAccountForm = GlobalKey(); + late final verifyAccountForm = GlobalKey(); TextEditingController digit1 = TextEditingController(text: ""); TextEditingController digit2 = TextEditingController(text: ""); @@ -43,10 +43,10 @@ class SMSOTP { final focusD2 = FocusNode(); final focusD3 = FocusNode(); final focusD4 = FocusNode(); - String errorMsg; - ProjectViewModel projectProvider; - String displayTime = ''; - bool isClosed = false; + late String errorMsg; + late ProjectViewModel projectProvider; + late String displayTime = ''; + late bool isClosed = false; displayDialog(BuildContext context) async { double dialogWidth = MediaQuery.of(context).size.width * 0.90; double dialogInputWidth = (dialogWidth / 4) - @@ -357,15 +357,15 @@ class SMSOTP { counterText: " ", enabledBorder: OutlineInputBorder( borderRadius: BorderRadius.all(Radius.circular(10)), - borderSide: BorderSide(color: Colors.grey[300]), + borderSide: BorderSide(color: Colors.grey[300]!), ), focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.all(Radius.circular(10.0)), - borderSide: BorderSide(color: Colors.grey[300]), + borderSide: BorderSide(color: Colors.grey[300]!), ), errorBorder: OutlineInputBorder( borderRadius: BorderRadius.all(Radius.circular(10.0)), - borderSide: BorderSide(color: Colors.grey[300]), + borderSide: BorderSide(color: Colors.grey[300]!), ), focusedErrorBorder: OutlineInputBorder( borderRadius: BorderRadius.all(Radius.circular(10.0)), @@ -375,7 +375,7 @@ class SMSOTP { } // ignore: missing_return - String validateCodeDigit(value) { + String? validateCodeDigit(value) { if (value.isEmpty) { return ' '; } else if (value.length == 3) { @@ -386,27 +386,21 @@ class SMSOTP { } checkValue() async { - if (verifyAccountForm.currentState.validate()) { - onSuccess(digit1.text.toString() + - digit2.text.toString() + - digit3.text.toString() + - digit4.text.toString()); + if (verifyAccountForm.currentState!.validate()) { + onSuccess(digit1.text.toString() + digit2.text.toString() + digit3.text.toString() + digit4.text.toString()); this.isClosed = true; } } getSecondsAsDigitalClock(int inputSeconds) { - var sec_num = - int.parse(inputSeconds.toString()); // don't forget the second param + var sec_num = int.parse(inputSeconds.toString()); // don't forget the second param var hours = (sec_num / 3600).floor(); var minutes = ((sec_num - hours * 3600) / 60).floor(); var seconds = sec_num - hours * 3600 - minutes * 60; var minutesString = ""; var secondsString = ""; - minutesString = - minutes < 10 ? "0" + minutes.toString() : minutes.toString(); - secondsString = - seconds < 10 ? "0" + seconds.toString() : seconds.toString(); + minutesString = minutes < 10 ? "0" + minutes.toString() : minutes.toString(); + secondsString = seconds < 10 ? "0" + seconds.toString() : seconds.toString(); return minutesString + ":" + secondsString; } diff --git a/lib/widgets/auth/verification_methods_list.dart b/lib/widgets/auth/verification_methods_list.dart index d9175a11..79ab67e4 100644 --- a/lib/widgets/auth/verification_methods_list.dart +++ b/lib/widgets/auth/verification_methods_list.dart @@ -9,16 +9,16 @@ import 'package:provider/provider.dart'; class VerificationMethodsList extends StatefulWidget { final AuthMethodTypes authMethodType; - final Function(AuthMethodTypes type, bool isActive) authenticateUser; - final Function onShowMore; + final Function(AuthMethodTypes type, bool isActive)? authenticateUser; + final GestureTapCallback? onShowMore; final AuthenticationViewModel authenticationViewModel; const VerificationMethodsList( - {Key ? key, - this.authMethodType, + {Key? key, + required this.authMethodType, this.authenticateUser, this.onShowMore, - this.authenticationViewModel}) + required this.authenticationViewModel}) : super(key: key); @override @@ -28,7 +28,7 @@ class VerificationMethodsList extends StatefulWidget { class _VerificationMethodsListState extends State { final LocalAuthentication auth = LocalAuthentication(); - ProjectViewModel projectsProvider; + ProjectViewModel? projectsProvider; @override Widget build(BuildContext context) { @@ -39,7 +39,7 @@ class _VerificationMethodsListState extends State { return MethodTypeCard( assetPath: 'assets/images/svgs/verification/verify-whtsapp.svg', onTap: () => - {widget.authenticateUser(AuthMethodTypes.WhatsApp, true)}, + {widget.authenticateUser!(AuthMethodTypes.WhatsApp, true)}, label: TranslationBase .of(context) .verifyWith+ TranslationBase.of(context).verifyWhatsApp, @@ -48,7 +48,7 @@ class _VerificationMethodsListState extends State { case AuthMethodTypes.SMS: return MethodTypeCard( assetPath: "assets/images/svgs/verification/verify-sms.svg", - onTap: () => {widget.authenticateUser(AuthMethodTypes.SMS, true)}, + onTap: () => {widget.authenticateUser!(AuthMethodTypes.SMS, true)}, label:TranslationBase .of(context) .verifyWith+ TranslationBase.of(context).verifySMS, @@ -58,10 +58,8 @@ class _VerificationMethodsListState extends State { return MethodTypeCard( assetPath: 'assets/images/svgs/verification/verify-finger.svg', onTap: () async { - if (await widget.authenticationViewModel - .checkIfBiometricAvailable(BiometricType.fingerprint)) { - - widget.authenticateUser(AuthMethodTypes.Fingerprint, true); + if (await widget.authenticationViewModel.checkIfBiometricAvailable(BiometricType.fingerprint)) { + widget.authenticateUser!(AuthMethodTypes.Fingerprint, true); } }, label: TranslationBase @@ -73,9 +71,8 @@ class _VerificationMethodsListState extends State { return MethodTypeCard( assetPath: 'assets/images/svgs/verification/verify-face.svg', onTap: () async { - if (await widget.authenticationViewModel - .checkIfBiometricAvailable(BiometricType.face)) { - widget.authenticateUser(AuthMethodTypes.FaceID, true); + if (await widget.authenticationViewModel.checkIfBiometricAvailable(BiometricType.face)) { + widget.authenticateUser!(AuthMethodTypes.FaceID, true); } }, label: TranslationBase @@ -87,10 +84,9 @@ class _VerificationMethodsListState extends State { default: return MethodTypeCard( assetPath: 'assets/images/login/more_icon.png', - onTap: widget.onShowMore, - isSvg: false, - label: TranslationBase.of(context).moreVerification, - height: 0, + onTap: widget.onShowMore!, + label: TranslationBase.of(context).moreVerification!, + // height: 40, ); } } diff --git a/lib/widgets/charts/app_line_chart.dart b/lib/widgets/charts/app_line_chart.dart index 26e3c582..0367792f 100644 --- a/lib/widgets/charts/app_line_chart.dart +++ b/lib/widgets/charts/app_line_chart.dart @@ -17,9 +17,9 @@ class AppLineChart extends StatelessWidget { final bool stacked; AppLineChart( - {Key ? key, - @required this.seriesList, - this.chartTitle, + {Key? key, + required this.seriesList, + required this.chartTitle, this.animate = true, this.includeArea = false, this.stacked = true}); diff --git a/lib/widgets/charts/app_time_series_chart.dart b/lib/widgets/charts/app_time_series_chart.dart index 67ad3f0e..08e8a04e 100644 --- a/lib/widgets/charts/app_time_series_chart.dart +++ b/lib/widgets/charts/app_time_series_chart.dart @@ -12,11 +12,11 @@ import 'package:flutter/material.dart'; /// [endDate] the end date class AppTimeSeriesChart extends StatelessWidget { AppTimeSeriesChart({ - Key ? key, - @required this.seriesList, + Key? key, + required this.seriesList, this.chartName = '', - this.startDate, - this.endDate, + required this.startDate, + required this.endDate, }); final String chartName; diff --git a/lib/widgets/dashboard/guage_chart.dart b/lib/widgets/dashboard/guage_chart.dart index 6769c568..7140555b 100644 --- a/lib/widgets/dashboard/guage_chart.dart +++ b/lib/widgets/dashboard/guage_chart.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; class GaugeChart extends StatelessWidget { final List seriesList; - final bool animate; + final bool? animate; GaugeChart(this.seriesList, {this.animate}); diff --git a/lib/widgets/dashboard/out_patient_stack.dart b/lib/widgets/dashboard/out_patient_stack.dart index 6b3d87d5..235a3646 100644 --- a/lib/widgets/dashboard/out_patient_stack.dart +++ b/lib/widgets/dashboard/out_patient_stack.dart @@ -20,7 +20,7 @@ class GetOutPatientStack extends StatelessWidget { value.summaryoptions .sort((Summaryoptions a, Summaryoptions b) => b.value - a.value); - var list = new List(); + var list = []; value.summaryoptions.forEach((result) => {list.add(getStack(result, value.summaryoptions.first.value,context,barHeight))}); return Container( @@ -103,7 +103,7 @@ class GetOutPatientStack extends StatelessWidget { child: Container( child: SizedBox(), padding: EdgeInsets.all(10), - height: max != 0 ? ((barHeight) * value.value) / max : 0, + height: max != 0 ? ((barHeight) * value.value!) / max : 0, decoration: BoxDecoration( borderRadius: BorderRadius.circular(4), color: Color(0xFFD02127).withOpacity(0.39), diff --git a/lib/widgets/dashboard/row_count.dart b/lib/widgets/dashboard/row_count.dart index 820dcd37..aea5f3ae 100644 --- a/lib/widgets/dashboard/row_count.dart +++ b/lib/widgets/dashboard/row_count.dart @@ -6,8 +6,8 @@ import 'package:flutter/material.dart'; class RowCounts extends StatelessWidget { final name; final int count; + final double? height; final Color c; - final double height; RowCounts(this.name, this.count, this.c, {this.height}); diff --git a/lib/widgets/data_display/list/custom_Item.dart b/lib/widgets/data_display/list/custom_Item.dart index 76087761..61457302 100644 --- a/lib/widgets/data_display/list/custom_Item.dart +++ b/lib/widgets/data_display/list/custom_Item.dart @@ -27,17 +27,17 @@ class CustomItem extends StatelessWidget { final BoxDecoration decoration; CustomItem( - {Key ? key, - this.startIcon, + {Key? key, + required this.startIcon, this.disabled: false, - this.onTap, - this.startIconColor, + required this.onTap, + required this.startIconColor, this.endIcon = EvaIcons.chevronRight, - this.padding, - this.child, - this.endIconColor, + required this.padding, + required this.child, + required this.endIconColor, this.endIconSize = 20, - this.decoration, + required this.decoration, this.startIconSize = 19}) : super(key: key); diff --git a/lib/widgets/data_display/list/flexible_container.dart b/lib/widgets/data_display/list/flexible_container.dart index 91cc86ea..4758a931 100644 --- a/lib/widgets/data_display/list/flexible_container.dart +++ b/lib/widgets/data_display/list/flexible_container.dart @@ -14,15 +14,15 @@ import 'package:flutter/material.dart'; class FlexibleContainer extends StatelessWidget { final double widthFactor; final double heightFactor; - final EdgeInsets padding; + final EdgeInsets? padding; final Widget child; FlexibleContainer({ - Key ? key, + Key? key, this.widthFactor = 0.9, this.heightFactor = 1, this.padding, - this.child, + required this.child, }) : super(key: key); @override diff --git a/lib/widgets/dialog/AskPermissionDialog.dart b/lib/widgets/dialog/AskPermissionDialog.dart index 58718373..f7a23925 100644 --- a/lib/widgets/dialog/AskPermissionDialog.dart +++ b/lib/widgets/dialog/AskPermissionDialog.dart @@ -10,7 +10,7 @@ class AskPermissionDialog extends StatefulWidget { final String type; final Function onTapGrant; - AskPermissionDialog({this.type, this.onTapGrant}); + AskPermissionDialog({required this.type, required this.onTapGrant}); @override _AskPermissionDialogState createState() => _AskPermissionDialogState(); diff --git a/lib/widgets/doctor/lab_result_widget.dart b/lib/widgets/doctor/lab_result_widget.dart index 8c2d56ab..0c0a4767 100644 --- a/lib/widgets/doctor/lab_result_widget.dart +++ b/lib/widgets/doctor/lab_result_widget.dart @@ -11,7 +11,7 @@ import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; class LabResultWidget extends StatefulWidget { final List labResult; - LabResultWidget({Key ? key, this.labResult}); + LabResultWidget({Key? key, required this.labResult}); @override _LabResultWidgetState createState() => _LabResultWidgetState(); @@ -137,7 +137,7 @@ class _LabResultWidgetState extends State { child: Center( child: AppText( '${result.description}', - color: Colors.grey[800], + color: Colors.grey![800], ), ), height: 60, @@ -147,16 +147,14 @@ class _LabResultWidgetState extends State { child: Container( child: Center( child: AppText('${result.resultValue}', - color: Colors.grey[800]), + color: Colors.grey![800]), ), height: 60), ), Expanded( child: Container( child: Center( - child: AppText( - '${result.referenceRange}', - color: Colors.grey[800]), + child: AppText('${result.referenceRange}', color: Colors.grey[800]), ), height: 60), ), diff --git a/lib/widgets/doctor/my_referral_patient_widget.dart b/lib/widgets/doctor/my_referral_patient_widget.dart index e56887a0..c8ce4eea 100644 --- a/lib/widgets/doctor/my_referral_patient_widget.dart +++ b/lib/widgets/doctor/my_referral_patient_widget.dart @@ -19,11 +19,11 @@ class MyReferralPatientWidget extends StatefulWidget { final Function expandClick; MyReferralPatientWidget( - {Key ? key, - this.myReferralPatientModel, - this.model, - this.isExpand, - this.expandClick}); + {Key? key, + required this.myReferralPatientModel, + required this.model, + required this.isExpand, + required this.expandClick}); @override _MyReferralPatientWidgetState createState() => @@ -33,8 +33,8 @@ class MyReferralPatientWidget extends StatefulWidget { class _MyReferralPatientWidgetState extends State { bool _isLoading = false; final _formKey = GlobalKey(); - String error; - TextEditingController answerController; + late String error; + late TextEditingController answerController; @override void initState() { @@ -127,7 +127,7 @@ class _MyReferralPatientWidgetState extends State { margin: EdgeInsets.symmetric(horizontal: 8, vertical: 8), child: InkWell( - onTap: widget.expandClick, + onTap: widget.expandClick(), child: Image.asset( "assets/images/ic_circle_arrow.png", width: 25, @@ -323,7 +323,7 @@ class _MyReferralPatientWidgetState extends State { ), SizedBox( child: AppText( - '${DateFormat('dd/MM/yyyy').format(widget.myReferralPatientModel.mAXResponseTime)}', + '${DateFormat('dd/MM/yyyy').format(widget.myReferralPatientModel.mAXResponseTime!)}', fontSize: 1.7 * SizeConfig.textMultiplier, fontWeight: FontWeight.normal, textAlign: TextAlign.start, @@ -434,7 +434,7 @@ class _MyReferralPatientWidgetState extends State { title : TranslationBase.of(context).replay, onPressed: () async { final form = _formKey.currentState; - if (form.validate()) { + if (form!.validate()) { try { await widget.model.replay( answerController.text.toString(), diff --git a/lib/widgets/doctor/my_schedule_widget.dart b/lib/widgets/doctor/my_schedule_widget.dart index 803f337e..f13eb968 100644 --- a/lib/widgets/doctor/my_schedule_widget.dart +++ b/lib/widgets/doctor/my_schedule_widget.dart @@ -13,13 +13,13 @@ import 'package:provider/provider.dart'; class MyScheduleWidget extends StatelessWidget { final ListDoctorWorkingHoursTable workingHoursTable; - MyScheduleWidget({Key ? key, this.workingHoursTable}); + MyScheduleWidget({Key? key, required this.workingHoursTable}); @override Widget build(BuildContext context) { ProjectViewModel projectViewModel = Provider.of(context); List workingHours = Helpers.getWorkingHours( - workingHoursTable.workingHours, + workingHoursTable.workingHours!, ); return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, @@ -34,13 +34,15 @@ class MyScheduleWidget extends StatelessWidget { height: 10, ), AppText( - projectViewModel.isArabic?AppDateUtils.getWeekDayArabic(workingHoursTable.date.weekday): AppDateUtils.getWeekDay(workingHoursTable.date.weekday) , + projectViewModel.isArabic + ? AppDateUtils.getWeekDayArabic(workingHoursTable.date!.weekday) + : AppDateUtils.getWeekDay(workingHoursTable.date!.weekday), fontSize: 16, fontFamily: 'Poppins', // fontSize: 18 ), AppText( - ' ${workingHoursTable.date.day} ${(AppDateUtils.getMonth(workingHoursTable.date.month).toString().substring(0, 3))}', + ' ${workingHoursTable.date!.day} ${(AppDateUtils.getMonth(workingHoursTable.date!.month).toString().substring(0, 3))}', fontSize: 14, fontWeight: FontWeight.w700, fontFamily: 'Poppins', @@ -52,15 +54,14 @@ class MyScheduleWidget extends StatelessWidget { Container( width: MediaQuery.of(context).size.width * 0.55, child: CardWithBgWidget( - bgColor: AppDateUtils.isToday(workingHoursTable.date) - ? AppGlobal.appGreenColor - : Colors.transparent, + bgColor: AppDateUtils.isToday(workingHoursTable.date!) ? Colors.green[500]! : Colors.transparent, + // hasBorder: false, widget: Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - if (AppDateUtils.isToday(workingHoursTable.date)) + if (AppDateUtils.isToday(workingHoursTable.date!)) AppText( "Today", fontSize: 1.8 * SizeConfig.textMultiplier, diff --git a/lib/widgets/medicine/medicine_item_widget.dart b/lib/widgets/medicine/medicine_item_widget.dart index f4f78c08..482a251b 100644 --- a/lib/widgets/medicine/medicine_item_widget.dart +++ b/lib/widgets/medicine/medicine_item_widget.dart @@ -18,11 +18,11 @@ import '../shared/rounded_container_widget.dart'; */ class MedicineItemWidget extends StatefulWidget { - final String label; + final String? label; final Color backgroundColor; final bool showBorder; final Color borderColor; - final String url; + final String? url; MedicineItemWidget( {@required this.label, @@ -52,7 +52,7 @@ class _MedicineItemWidgetState extends State { child: ClipRRect( borderRadius: BorderRadius.all(Radius.circular(7)), child: Image.network( - widget.url, + widget.url!, height: SizeConfig.imageSizeMultiplier * 15, width: SizeConfig.imageSizeMultiplier * 15, fit: BoxFit.cover, @@ -62,9 +62,7 @@ class _MedicineItemWidgetState extends State { Expanded( child: Padding( padding: EdgeInsets.all(5), - child: Align( - alignment: Alignment.centerLeft, - child: AppText(widget.label)))), + child: Align(alignment: Alignment.centerLeft, child: AppText(widget.label)))), Icon(EvaIcons.eye) ], ),