page updated

merge-requests/385/head
Sultan Khan 5 years ago
parent 3c1a65f310
commit e14e004700

@ -277,7 +277,7 @@ const Map<String, Map<String, String>> localizedValues = {
"doc-name": {"en": "Doctor Name", "ar": "اسم الطبيب"}, "doc-name": {"en": "Doctor Name", "ar": "اسم الطبيب"},
"clinicname": {"en": "Clinic Name", "ar": "اسم العيادة"}, "clinicname": {"en": "Clinic Name", "ar": "اسم العيادة"},
"sick-leave-date": {"en": "Sick leave date ", "ar": "تاريخ الاجازة."}, "sick-leave-date": {"en": "Sick leave date ", "ar": "تاريخ الاجازة."},
"sick-leave-days": {"en": "Sick leave days", "ar": "عدد ايام الاجازة."}, "sick-leave-days": {"en": "Leave Days: ", "ar": " :أيام الإجازة"},
'admissionDetail': {'en': 'ADMISSION DETAIL: ', 'ar': 'تفاصيل القبول: '}, 'admissionDetail': {'en': 'ADMISSION DETAIL: ', 'ar': 'تفاصيل القبول: '},
'dateTime': {'en': 'DATE / TIME:', 'ar': 'التاريخ / الوقت:'}, 'dateTime': {'en': 'DATE / TIME:', 'ar': 'التاريخ / الوقت:'},
'date': {'en': 'Date', 'ar': 'التاريخ'}, 'date': {'en': 'Date', 'ar': 'التاريخ'},
@ -302,8 +302,8 @@ const Map<String, Map<String, String>> localizedValues = {
"ar": "يرجى ادخال هذا الحقل" "ar": "يرجى ادخال هذا الحقل"
}, },
'no-sickleve-applied': { 'no-sickleve-applied': {
'en': "No sick leave applied", 'en': "No sick leave available, apply Now",
'ar': 'لم تطبق إجازة مرضية' 'ar': 'لا توجد إجازة مرضية متاحة ، تقدم بطلب الآن'
}, },
'applynow': {'en': "Apply Now", 'ar': 'قدم الآن'}, 'applynow': {'en': "Apply Now", 'ar': 'قدم الآن'},
'add-sickleave': {'en': "ADD SICK LEAVE", 'ar': 'أضف إجازة مرضية'}, 'add-sickleave': {'en': "ADD SICK LEAVE", 'ar': 'أضف إجازة مرضية'},
@ -802,4 +802,5 @@ const Map<String, Map<String, String>> localizedValues = {
"add-reschedule": {"en": "Add reschedule", "ar": "أضف إعادة الجدولة"}, "add-reschedule": {"en": "Add reschedule", "ar": "أضف إعادة الجدولة"},
"update-reschedule": {"en": "Update reschedule", "ar": "تحديث إعادة الجدولة"}, "update-reschedule": {"en": "Update reschedule", "ar": "تحديث إعادة الجدولة"},
"sick_leave": {"en": "Sick Leave", "ar": "أجازة مرضية"},
}; };

@ -128,121 +128,121 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
widthFactor: 0.9, widthFactor: 0.9,
child: ListView( child: ListView(
children: [ children: [
Container( // Container(
margin: EdgeInsets.all(8), // margin: EdgeInsets.all(8),
decoration: BoxDecoration( // decoration: BoxDecoration(
borderRadius: BorderRadius.all( // borderRadius: BorderRadius.all(
Radius.circular(6.0)), // Radius.circular(6.0)),
border: Border.all( // border: Border.all(
width: 1.0, // width: 1.0,
color: HexColor("#CCCCCC"))), // color: HexColor("#CCCCCC"))),
width: double.infinity, // width: double.infinity,
child: Padding( // child: Padding(
padding: EdgeInsets.only( // padding: EdgeInsets.only(
top: SizeConfig.widthMultiplier * 0.9, // top: SizeConfig.widthMultiplier * 0.9,
bottom: // bottom:
SizeConfig.widthMultiplier * 0.9, // SizeConfig.widthMultiplier * 0.9,
right: SizeConfig.widthMultiplier * 3, // right: SizeConfig.widthMultiplier * 3,
left: SizeConfig.widthMultiplier * 3), // left: SizeConfig.widthMultiplier * 3),
child: Column( // child: Column(
crossAxisAlignment: // crossAxisAlignment:
CrossAxisAlignment.start, // CrossAxisAlignment.start,
children: [ // children: [
Row( // Row(
mainAxisSize: MainAxisSize.max, // mainAxisSize: MainAxisSize.max,
children: <Widget>[ // children: <Widget>[
Expanded( // Expanded(
// add Expanded to have your dropdown button fill remaining space // // add Expanded to have your dropdown button fill remaining space
child: // child:
DropdownButtonHideUnderline( // DropdownButtonHideUnderline(
child: new IgnorePointer( // child: new IgnorePointer(
ignoring: true, // ignoring: true,
child: DropdownButton( // child: DropdownButton(
focusColor: // focusColor:
Colors.grey, // Colors.grey,
isExpanded: true, // isExpanded: true,
dropdownColor: // dropdownColor:
Colors.grey, // Colors.grey,
value: getClinicName( // value: getClinicName(
model) ?? // model) ??
"", // "",
iconSize: 0, // iconSize: 0,
elevation: 16, // elevation: 16,
selectedItemBuilder: // selectedItemBuilder:
(BuildContext // (BuildContext
context) { // context) {
return model // return model
.getClinicNameList() // .getClinicNameList()
.map((item) { // .map((item) {
return Row( // return Row(
mainAxisSize: // mainAxisSize:
MainAxisSize // MainAxisSize
.max, // .max,
children: < // children: <
Widget>[ // Widget>[
AppText( // AppText(
item, // item,
fontSize: // fontSize:
SizeConfig.textMultiplier * // SizeConfig.textMultiplier *
2.1, // 2.1,
color: Colors // color: Colors
.grey[ // .grey[
500], // 500],
), // ),
], // ],
); // );
}).toList(); // }).toList();
}, // },
onChanged: // onChanged:
(newValue) => // (newValue) =>
{}, // {},
items: model // items: model
.getClinicNameList() // .getClinicNameList()
.map((item) { // .map((item) {
return DropdownMenuItem( // return DropdownMenuItem(
value: item // value: item
.toString(), // .toString(),
child: Text( // child: Text(
item, // item,
textAlign: // textAlign:
TextAlign // TextAlign
.end, // .end,
), // ),
); // );
}).toList(), // }).toList(),
))), // ))),
), // ),
], // ],
) // )
], // ],
), // ),
)), // )),
Container( // Container(
margin: EdgeInsets.all(8), // margin: EdgeInsets.all(8),
decoration: BoxDecoration( // decoration: BoxDecoration(
borderRadius: // borderRadius:
BorderRadius.all(Radius.circular(6.0)), // BorderRadius.all(Radius.circular(6.0)),
border: Border.all( // border: Border.all(
width: 1.0, // width: 1.0,
color: HexColor("#CCCCCC"))), // color: HexColor("#CCCCCC"))),
padding: EdgeInsets.all(5), // padding: EdgeInsets.all(5),
child: Column( // child: Column(
crossAxisAlignment: CrossAxisAlignment.start, // crossAxisAlignment: CrossAxisAlignment.start,
children: [ // children: [
new IgnorePointer( // new IgnorePointer(
ignoring: true, // ignoring: true,
child: AppTextFormField( // child: AppTextFormField(
readOnly: true, // readOnly: true,
hintText: profile != null // hintText: profile != null
? profile['DoctorName'] // ? profile['DoctorName']
: "", // : "",
borderColor: Colors.white, // borderColor: Colors.white,
onSaved: (value) {}, // onSaved: (value) {},
inputFormatter: ONLY_NUMBERS)) // inputFormatter: ONLY_NUMBERS))
], // ],
), // ),
), // ),
Container( Container(
margin: EdgeInsets.all(8), margin: EdgeInsets.all(8),
@ -842,6 +842,7 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
], ],
), ),
)), )),
SizedBox(height: SizeConfig.screenHeight * .3),
Container( Container(
margin: EdgeInsets.all( margin: EdgeInsets.all(
SizeConfig.widthMultiplier * 5), SizeConfig.widthMultiplier * 5),

@ -6,12 +6,15 @@ import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/models/sickleave/get_all_sickleave_response.dart'; import 'package:doctor_app_flutter/models/sickleave/get_all_sickleave_response.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart'; import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart';
import 'package:doctor_app_flutter/util/date-utils.dart';
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart'; import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/patient-page-header-widget.dart'; import 'package:doctor_app_flutter/widgets/patients/profile/patient-page-header-widget.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.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/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/card_with_bgNew_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/card_with_bgNew_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
@ -25,19 +28,94 @@ class AddSickLeavScreen extends StatelessWidget {
onModelReady: (model) => model.getSickLeave(patient.patientMRN), onModelReady: (model) => model.getSickLeave(patient.patientMRN),
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
baseViewModel: model, baseViewModel: model,
isShowAppBar: false,
appBarTitle: TranslationBase.of(context).sickleave, appBarTitle: TranslationBase.of(context).sickleave,
body: SingleChildScrollView( body: SingleChildScrollView(
child: Column(children: [ child: Column(children: [
PatientPageHeaderWidget(patient), PatientProfileHeaderNewDesign(
patient, routeArgs['patientType'], routeArgs['arrivalType']),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: EdgeInsets.all(10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
TranslationBase.of(context).patient,
fontWeight: FontWeight.bold,
),
AppText(
TranslationBase.of(context).sickLeave,
fontSize: 24,
fontWeight: FontWeight.bold,
),
],
)),
Container(
width: SizeConfig.screenWidth,
margin: EdgeInsets.only(
left: 20, right: 20, top: 10, bottom: 10),
padding: EdgeInsets.all(20),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: HexColor('#EAEAEA')),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
child: Container(
decoration: BoxDecoration(
color: Colors.grey,
borderRadius: BorderRadius.circular(10)),
padding: EdgeInsets.all(3),
child: IconButton(
icon: Icon(
Icons.add,
size: 35,
color: Colors.white,
),
onPressed: () {
openSickLeave(
context,
false,
);
}),
)),
Padding(
child: AppText(
TranslationBase.of(context).noSickLeaveApplied,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 16,
textAlign: TextAlign.center,
color: HexColor('#7E7E7E')),
padding: EdgeInsets.all(10),
),
],
)),
],
),
model.getAllSIckLeave.length > 0 model.getAllSIckLeave.length > 0
? Column( ? Column(
children: model.getAllSIckLeave children: model.getAllSIckLeave
.map<Widget>((GetAllSickLeaveResponse item) { .map<Widget>((GetAllSickLeaveResponse item) {
return CardWithBgWidgetNew( return RoundedContainer(
widget: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.only(left: 10, right: 10), decoration: BoxDecoration(
border: Border(
left: BorderSide(
color: item.status == 1
? Colors.yellow[800]
: item.status == 2
? Colors.green
: Colors.black,
width: 5.0,
))),
padding: EdgeInsets.all(10),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
@ -66,42 +144,77 @@ class AddSickLeavScreen extends StatelessWidget {
context) context)
.all, .all,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.white, color: item.status == 1
? Colors.yellow[800]
: item.status == 2
? Colors.green
: Colors.black,
), ),
color: item.status == 1 ),
? Colors.yellow[800] Row(
: item.status == 2 children: [
? Colors.green AppText(TranslationBase.of(
: Colors.black, context)
.daysSickleave),
AppText(
item.noOfDays.toString(),
fontWeight: FontWeight.bold,
),
],
), ),
Row( Row(
children: [ children: [
AppText( AppText(
TranslationBase.of(context) TranslationBase.of(context)
.leaveStartDate + .startDate +
' ', ' ',
fontWeight: FontWeight.bold,
), ),
Flexible( Flexible(
child: Text( child: AppText(
item.startDate, DateUtils
overflow: .convertStringToDateFormat(
TextOverflow.ellipsis, item.startDate,
'dd-MMM-yyyy'),
fontWeight: FontWeight.bold,
)) ))
], ],
), ),
AppText( Row(
item.noOfDays.toString() + mainAxisAlignment:
' ' + MainAxisAlignment
TranslationBase.of(context) .spaceBetween,
.daysSickleave, children: [
fontWeight: FontWeight.bold, AppText(
), item.remarks ?? "",
Row(children: [ ),
AppText( (item.status == 1 ||
item.remarks ?? "", item.status == 2)
) ? IconButton(
]), icon: Image.asset(
'assets/images/edit.png'),
// color: Colors.green, //Colors.black,
onPressed: () => {
if (item.status ==
1)
{
DrAppToastMsg.showErrorToast(
TranslationBase.of(
context)
.sickleaveonhold)
}
else
{
openSickLeave(
context,
true,
extendedData:
item)
}
},
)
: SizedBox()
]),
], ],
), ),
SizedBox( SizedBox(
@ -110,86 +223,81 @@ class AddSickLeavScreen extends StatelessWidget {
], ],
), ),
), ),
(item.status == 1 || item.status == 2)
? Expanded(
flex: 1,
child: IconButton(
icon: Icon(
Icons.open_in_full,
size: 25,
color: item.status == 1
? Colors.grey[400]
: Colors.black,
),
// color: Colors.green, //Colors.black,
onPressed: () => {
if (item.status == 1)
{
DrAppToastMsg.showErrorToast(
TranslationBase.of(
context)
.sickleaveonhold)
}
else
{
openSickLeave(context, true,
extendedData: item)
}
},
))
: SizedBox(),
], ],
)), )),
SizedBox(
height: 20,
),
Divider(
height: 1,
),
], ],
)); ));
}).toList(), }).toList(),
) )
: new Builder(builder: (context) { : new Builder(builder: (context) {
return Container( return Column(
height: MediaQuery.of(context).size.height * .7, crossAxisAlignment: CrossAxisAlignment.start,
child: Column( children: [
mainAxisAlignment: MainAxisAlignment.center, Padding(
children: [ padding: EdgeInsets.all(10),
Container( child: Column(
padding: EdgeInsets.all(40), crossAxisAlignment: CrossAxisAlignment.start,
decoration: BoxDecoration( children: [
border: Border.all( AppText(
color: HexColor('#B8382C'), width: 4), TranslationBase.of(context).patient,
borderRadius: fontWeight: FontWeight.bold,
BorderRadius.all(Radius.circular(100))), ),
child: IconButton( AppText(
icon: Icon( TranslationBase.of(context).sickLeave,
Icons.add, fontSize: 24,
size: 35, fontWeight: FontWeight.bold,
), ),
onPressed: () { ],
openSickLeave( )),
context, Container(
false, width: SizeConfig.screenWidth,
); margin: EdgeInsets.only(
}), left: 20, right: 20, top: 20, bottom: 20),
), padding: EdgeInsets.all(20),
Padding( decoration: BoxDecoration(
child: AppText( borderRadius: BorderRadius.circular(10),
TranslationBase.of(context) color: HexColor('#EAEAEA')),
.noSickLeaveApplied, child: Column(
fontWeight: FontWeight.bold, mainAxisAlignment: MainAxisAlignment.start,
), children: [
padding: EdgeInsets.all(10), Container(
), child: Container(
AppText( decoration: BoxDecoration(
TranslationBase.of(context).applyNow, color: Colors.grey,
fontWeight: FontWeight.bold, borderRadius:
color: HexColor('#B8382C'), BorderRadius.circular(10)),
) padding: EdgeInsets.all(3),
], child: IconButton(
)); icon: Icon(
Icons.add,
size: 35,
color: Colors.white,
),
onPressed: () {
openSickLeave(
context,
false,
);
}),
)),
Padding(
child: AppText(
TranslationBase.of(context)
.noSickLeaveApplied,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 16,
textAlign: TextAlign.center,
color: HexColor('#7E7E7E')),
padding: EdgeInsets.all(10),
),
],
)),
SizedBox(
height: SizeConfig.screenHeight * .6,
)
],
);
}), }),
])))); ]))));
} }

@ -6,12 +6,15 @@ import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/models/sickleave/get_all_sickleave_response.dart'; import 'package:doctor_app_flutter/models/sickleave/get_all_sickleave_response.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart'; import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart';
import 'package:doctor_app_flutter/util/date-utils.dart';
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart'; import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/patient-page-header-widget.dart'; import 'package:doctor_app_flutter/widgets/patients/profile/patient-page-header-widget.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.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/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/card_with_bgNew_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/card_with_bgNew_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
@ -23,22 +26,34 @@ class ShowSickLeaveScreen extends StatelessWidget {
final routeArgs = ModalRoute.of(context).settings.arguments as Map; final routeArgs = ModalRoute.of(context).settings.arguments as Map;
patient = routeArgs['patient']; patient = routeArgs['patient'];
return BaseView<SickLeaveViewModel>( return BaseView<SickLeaveViewModel>(
onModelReady: (model) => model.getSickLeave(patient.patientMRN ?? patient.patientId), onModelReady: (model) =>
model.getSickLeave(patient.patientMRN ?? patient.patientId),
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
baseViewModel: model, baseViewModel: model,
appBarTitle: TranslationBase.of(context).sickleave, appBarTitle: TranslationBase.of(context).sickleave,
body: SingleChildScrollView( body: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
PatientPageHeaderWidget(patient), PatientProfileHeaderNewDesign(
patient, routeArgs['patientType'], routeArgs['arrivalType']),
Column( Column(
children: model.getAllSIckLeave children: model.getAllSIckLeave
.map<Widget>((GetAllSickLeaveResponse item) { .map<Widget>((GetAllSickLeaveResponse item) {
return CardWithBgWidgetNew( return RoundedContainer(
widget: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.only(left: 10, right: 10), decoration: BoxDecoration(
border: Border(
left: BorderSide(
color: item.status == 1
? Colors.yellow[800]
: item.status == 2
? Colors.green
: Colors.black,
width: 5.0,
))),
padding: EdgeInsets.all(10),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
@ -66,41 +81,74 @@ class ShowSickLeaveScreen extends StatelessWidget {
context) context)
.all, .all,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.white, color: item.status == 1
? Colors.yellow[800]
: item.status == 2
? Colors.green
: Colors.black,
), ),
color: item.status == 1 ),
? Colors.yellow[800] Row(
: item.status == 2 children: [
? Colors.green AppText(TranslationBase.of(context)
: Colors.black, .daysSickleave),
AppText(
item.noOfDays.toString(),
fontWeight: FontWeight.bold,
),
],
), ),
Row( Row(
children: [ children: [
AppText( AppText(
TranslationBase.of(context) TranslationBase.of(context)
.leaveStartDate + .startDate +
' ', ' ',
fontWeight: FontWeight.bold,
), ),
Flexible( Flexible(
child: Text( child: AppText(
item.startDate, DateUtils
overflow: TextOverflow.ellipsis, .convertStringToDateFormat(
item.startDate,
'dd-MMM-yyyy'),
fontWeight: FontWeight.bold,
)) ))
], ],
), ),
AppText( Row(
item.noOfDays.toString() + mainAxisAlignment:
' ' + MainAxisAlignment.spaceBetween,
TranslationBase.of(context) children: [
.daysSickleave, AppText(
fontWeight: FontWeight.bold, item.remarks ?? "",
), ),
Row(children: [ (item.status == 1 ||
AppText( item.status == 2)
item.remarks ?? "", ? IconButton(
) icon: Image.asset(
]), 'assets/images/edit.png'),
// color: Colors.green, //Colors.black,
onPressed: () => {
if (item.status == 1)
{
DrAppToastMsg.showErrorToast(
TranslationBase.of(
context)
.sickleaveonhold)
}
// else
// {
// openSickLeave(
// context,
// true,
// extendedData:
// item)
// }
},
)
: SizedBox()
]),
], ],
), ),
SizedBox( SizedBox(
@ -109,15 +157,8 @@ class ShowSickLeaveScreen extends StatelessWidget {
], ],
), ),
), ),
], ],
)), )),
SizedBox(
height: 20,
),
Divider(
height: 1,
),
], ],
)); ));
}).toList(), }).toList(),
@ -128,6 +169,4 @@ class ShowSickLeaveScreen extends StatelessWidget {
), ),
); );
} }
} }

@ -1184,6 +1184,7 @@ class TranslationBase {
localizedValues['add-reschedule'][locale.languageCode]; localizedValues['add-reschedule'][locale.languageCode];
String get updateReschedule => String get updateReschedule =>
localizedValues['update-reschedule'][locale.languageCode]; localizedValues['update-reschedule'][locale.languageCode];
String get sickLeave => localizedValues['sick_leave'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

Loading…
Cancel
Save