Merge branch 'hussam' into 'development'

Translation stage four

See merge request Cloud_Solution/doctor_app_flutter!132
merge-requests/133/merge
hussam alhababieh 6 years ago
commit 063ac10df5

@ -6,7 +6,7 @@ const Map<String, Map<String, String>> localizedValues = {
'lanArabic': {'en': 'العربية', 'ar': 'العربية'}, 'lanArabic': {'en': 'العربية', 'ar': 'العربية'},
'doctorReply': {'en': 'Doctor Reply', 'ar': 'رد الطبيب'}, 'doctorReply': {'en': 'Doctor Reply', 'ar': 'رد الطبيب'},
'time': {'en': 'Time', 'ar': 'الوقت'}, 'time': {'en': 'Time', 'ar': 'الوقت'},
'fileNo': {'en': 'File No', 'ar': 'رقم الملف'}, 'fileNo': {'en': 'File No:', 'ar': 'رقم الملف:'},
'mobileNo': {'en': 'Mobile No', 'ar': 'رقم الموبايل'}, 'mobileNo': {'en': 'Mobile No', 'ar': 'رقم الموبايل'},
'messagesScreenToolbarTitle': {'en': 'Messages', 'ar': 'الرسائل'}, 'messagesScreenToolbarTitle': {'en': 'Messages', 'ar': 'الرسائل'},
'mySchedule': {'en': 'My Schedule', 'ar': 'جدولي'}, 'mySchedule': {'en': 'My Schedule', 'ar': 'جدولي'},
@ -157,4 +157,44 @@ const Map<String, Map<String, String>> localizedValues = {
'en': 'Please enter the code', 'en': 'Please enter the code',
'ar': 'الرجاء ادخال الرمز' 'ar': 'الرجاء ادخال الرمز'
}, },
'youDon\'tHaveAnyPatient': {
'en': 'You don\'t have any patient',
'ar': 'ليس لديك اي مرضى'
},
'age': {'en': 'Age', 'ar': 'العمر'},
'today': {'en': 'Today', 'ar': 'اليوم'},
'yesterday': {'en': 'Yesterday', 'ar': 'الأمس'},
'tomorrow': {'en': 'Tomorrow', 'ar': 'الغد'},
'nextWeek': {'en': 'Next Week', 'ar': 'الاسبوع القادم'},
'all': {'en': 'All', 'ar': 'الجميع'},
'errorNoInsuranceApprovals': {
'en': 'You don\'t have any Insurance Approvals',
'ar': 'ليس لديك اي موفقات تأمين'
},
'searchInsuranceApprovals': {
'en': 'Search InsuranceApprovals',
'ar': 'بحث عن موافقات التأمين'
},
'status': {'en': 'STATUS', 'ar': 'الحالة'},
'expiryDate': {'en': 'EXPIRY DATE', 'ar': 'تاريخ الانتهاء'},
'producerName': {'en': 'PRODUCER NAME', 'ar': 'اسم المنتج'},
'receiptOn': {'en': 'RECEIPT ON', 'ar': 'تاريخ الاستلام'},
'approvalNo': {'en': 'Approval No:', 'ar': 'رقم الموافقة:'},
'doctor': {'en': 'Doctor', 'ar': 'الدكتور'},
'ext': {'en': 'Ext#', 'ar': 'رقم التحويلة'},
'veryUrgent': {'en': 'Very Urgent', 'ar': 'عاجل جدا'},
'urgent': {'en': 'Urgent', 'ar': 'عاجل'},
'routine': {'en': 'Routine', 'ar': 'روتيني'},
'send': {'en': 'Send', 'ar': 'ارسال'},
'referralFrequency': {'en': 'Referral Frequency:', 'ar': 'تواتر الحالة:'},
'clinicalDetailsAndRemarks': {
'en': 'Clinical Details and Remarks',
'ar': 'التفاصيل السرسرية والملاحظات'
},
'remarks': {'en': 'Remarks', 'ar': 'ملاحظات'},
'pleaseFill': {
'en': 'Please fill all fields..!',
'ar': 'الرجاء ملأ جميع الحقول..!'
},
'replay2': {'en': 'Replay', 'ar': 'رد الطبيب'},
}; };

@ -149,10 +149,11 @@ class _DashboardScreenState extends State<DashboardScreen> {
CrossAxisAlignment.stretch, CrossAxisAlignment.stretch,
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
TranslationBase.of(context).arrived, TranslationBase.of(context).arrived,
"23", "23",
)), ),
),
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
TranslationBase.of(context) TranslationBase.of(context)
@ -227,7 +228,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
Expanded( Expanded(
flex: 2, flex: 2,
child: new DashboardItemIconText( child: new DashboardItemIconText(
DoctorApp.in_patient_white, "23", "In-Patient", DoctorApp.in_patient_white, "23", TranslationBase.of(context).outPatients,
showBorder: true, showBorder: true,
backgroundColor: Colors.red[900], backgroundColor: Colors.red[900],
iconColor: Colors.white), iconColor: Colors.white),
@ -238,7 +239,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
//widget.iconURL + 'operations.svg', //widget.iconURL + 'operations.svg',
DoctorApp.operations, DoctorApp.operations,
"23", "23",
TranslationBase.of(context).operations, TranslationBase.of(context).inPatient,
showBorder: true, showBorder: true,
backgroundColor: Colors.red[900], backgroundColor: Colors.red[900],
)), )),

@ -29,6 +29,7 @@ import 'package:hexcolor/hexcolor.dart';
import '../../widgets/shared/app_scaffold_widget.dart'; import '../../widgets/shared/app_scaffold_widget.dart';
import '../../widgets/shared/card_with_bg_widget.dart'; import '../../widgets/shared/card_with_bg_widget.dart';
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
class PatientsScreen extends StatefulWidget { class PatientsScreen extends StatefulWidget {
@override @override
@ -52,7 +53,7 @@ class _PatientsScreenState extends State<PatientsScreen> {
final String assetName = 'assets/image.svg'; final String assetName = 'assets/image.svg';
// List<String> _locations = ['Today', 'Old Date', 'YESTERDAY']; // List<String> _locations = ['Today', 'Old Date', 'YESTERDAY'];
List<String> _locations = ['All','Today', 'Tomorrow', 'Next Week']; List<String> _locations = ['All', 'Today', 'Tomorrow', 'Next Week'];
int _activeLocation = 0; int _activeLocation = 0;
bool _isInit = true; bool _isInit = true;
@ -267,22 +268,22 @@ class _PatientsScreenState extends State<PatientsScreen> {
if ((currentTime.year == checkedTime.year) && if ((currentTime.year == checkedTime.year) &&
(currentTime.month == checkedTime.month) && (currentTime.month == checkedTime.month) &&
(currentTime.day == checkedTime.day)) { (currentTime.day == checkedTime.day)) {
return "Today"; return TranslationBase.of(context).today;
} else if ((currentTime.year == checkedTime.year) && } else if ((currentTime.year == checkedTime.year) &&
(currentTime.month == checkedTime.month)) { (currentTime.month == checkedTime.month)) {
if ((currentTime.day - checkedTime.day) == 1) { if ((currentTime.day - checkedTime.day) == 1) {
return "YESTERDAY"; return TranslationBase.of(context).yesterday;
} else if ((currentTime.day - checkedTime.day) == -1) { } else if ((currentTime.day - checkedTime.day) == -1) {
return "Tomorrow"; return TranslationBase.of(context).tomorrow;
} }
if ((currentTime.day - checkedTime.day) <= -2) { if ((currentTime.day - checkedTime.day) <= -2) {
return "Next Week"; return TranslationBase.of(context).nextWeek;
} else { } else {
return "All"; return TranslationBase.of(context).all;
} }
} }
return "All"; return TranslationBase.of(context).all;
} }
/* /*
@ -304,7 +305,8 @@ class _PatientsScreenState extends State<PatientsScreen> {
: _isError : _isError
? DrAppEmbeddedError(error: error) ? DrAppEmbeddedError(error: error)
: litems == null : litems == null
? DrAppEmbeddedError(error: 'You don\'t have any patient') ? DrAppEmbeddedError(
error: TranslationBase.of(context).youDontHaveAnyPatient)
: Container( : Container(
child: ListView( child: ListView(
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
@ -347,7 +349,9 @@ class _PatientsScreenState extends State<PatientsScreen> {
this.searchData(str); this.searchData(str);
}, },
decoration: buildInputDecoration( decoration: buildInputDecoration(
context, 'Search '), context,
TranslationBase.of(context)
.search),
), ),
), ),
SizedBox( SizedBox(
@ -383,28 +387,49 @@ class _PatientsScreenState extends State<PatientsScreen> {
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment MainAxisAlignment
.start, .start,
children: <Widget>[ children: <
Widget>[
Container( Container(
decoration: BoxDecoration( decoration:
BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment(-1, -1), begin: Alignment(
end: Alignment(1, 1), -1,
-1),
end: Alignment(
1,
1),
colors: [ colors: [
Colors.grey[100], Colors.grey[100],
Colors.grey[200], Colors.grey[200],
]), ]),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Color.fromRGBO(0, 0, 0, 0.08), color: Color.fromRGBO(
offset: Offset(0.0, 5.0), 0,
blurRadius: 16.0) 0,
0,
0.08),
offset: Offset(0.0,
5.0),
blurRadius:
16.0)
], ],
borderRadius: BorderRadius.all(Radius.circular(50.0)), borderRadius:
BorderRadius.all(
Radius.circular(50.0)),
), ),
width: 80, width: 80,
height: 80, height: 80,
child: Icon(item.genderDescription == "Male" ? DoctorApp.male : DoctorApp.femaleicon,size: 80,)), child: Icon(
item.genderDescription ==
"Male"
? DoctorApp
.male
: DoctorApp
.femaleicon,
size: 80,
)),
], ],
), ),
SizedBox( SizedBox(
@ -434,7 +459,9 @@ class _PatientsScreenState extends State<PatientsScreen> {
height: 8, height: 8,
), ),
AppText( AppText(
"File Number:" + TranslationBase.of(
context)
.fileNo +
item.patientId item.patientId
.toString(), .toString(),
fontSize: 2.0 * fontSize: 2.0 *
@ -452,7 +479,9 @@ class _PatientsScreenState extends State<PatientsScreen> {
// height: 8, // height: 8,
// ), // ),
AppText( AppText(
"Age:" + TranslationBase.of(
context)
.age +
item.age item.age
.toString(), .toString(),
fontSize: 2.0 * fontSize: 2.0 *

@ -85,7 +85,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
? DrAppEmbeddedError(error: patientsProv.error) ? DrAppEmbeddedError(error: patientsProv.error)
: patientsProv.insuranceApporvalsList == null : patientsProv.insuranceApporvalsList == null
? DrAppEmbeddedError( ? DrAppEmbeddedError(
error: 'You don\'t have any Insurance Approvals') error:
TranslationBase.of(context).errorNoInsuranceApprovals)
: Column( : Column(
children: <Widget>[ children: <Widget>[
Container( Container(
@ -97,7 +98,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
this.searchData(str); this.searchData(str);
}, },
decoration: buildInputDecoration( decoration: buildInputDecoration(
context, 'Search Insurance Approvals'), context,
TranslationBase.of(context)
.searchInsuranceApprovals),
), ),
), ),
Expanded( Expanded(
@ -231,7 +234,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
marginBottom: 2, marginBottom: 2,
), ),
AppText( AppText(
"Approval No:", TranslationBase.of(context)
.approvalNo,
color: Colors.white, color: Colors.white,
fontSize: 16, fontSize: 16,
marginTop: 2, marginTop: 2,
@ -249,7 +253,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
.start, .start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
"PRODUCER NAME", TranslationBase.of(
context)
.producerName,
fontSize: 10, fontSize: 10,
color: color:
Colors.white, Colors.white,
@ -291,7 +297,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
.start, .start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
"STATUS", TranslationBase.of(
context)
.status,
fontSize: 10, fontSize: 10,
color: color:
Colors.white, Colors.white,
@ -329,7 +337,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
.start, .start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
"RECEIPT ON", TranslationBase.of(
context)
.receiptOn,
fontSize: 10, fontSize: 10,
color: color:
Colors.white, Colors.white,
@ -372,7 +382,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
.start, .start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
"EXPIRY DATE", TranslationBase.of(
context)
.expiryDate,
fontSize: 10, fontSize: 10,
color: color:
Colors.white, Colors.white,

@ -16,6 +16,7 @@ import '../../../widgets/shared/app_scaffold_widget.dart';
import '../../../widgets/shared/app_texts_widget.dart'; import '../../../widgets/shared/app_texts_widget.dart';
import '../../../widgets/shared/dr_app_circular_progress_Indeicator.dart'; import '../../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
import '../../../util/extenstions.dart'; import '../../../util/extenstions.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances(); DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
@ -48,8 +49,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
String _selectedDoctor; String _selectedDoctor;
String _selectedReferralFrequancy; String _selectedReferralFrequancy;
List<String> _priorities = ['Very Urgent', 'Urgent', 'Routine']; int _activePriority = 1;
int _activePriority = 2;
FocusNode myFocusNode; FocusNode myFocusNode;
@ -69,7 +69,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AppScaffold( return AppScaffold(
appBarTitle: "Refer Patient", appBarTitle: TranslationBase.of(context).myReferralPatient,
body: patientsProv.isLoading body: patientsProv.isLoading
? DrAppCircularProgressIndeicator() ? DrAppCircularProgressIndeicator()
: patientsProv.isError : patientsProv.isError
@ -82,7 +82,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
"Clinic", TranslationBase.of(context).clinic,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -166,7 +166,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
), ),
//--------------------------------------------------------------------// //--------------------------------------------------------------------//
AppText( AppText(
"Doctor", TranslationBase.of(context).doctor,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -246,7 +246,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
), ),
), //-----------------------------/// ), //-----------------------------///
AppText( AppText(
"Ext#", TranslationBase.of(context).ext,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -255,7 +255,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
Padding( Padding(
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
child: AppTextFormField( child: AppTextFormField(
hintText: "Ext#", hintText: TranslationBase.of(context).ext,
controller: _extController, controller: _extController,
inputFormatter: ONLY_NUMBERS, inputFormatter: ONLY_NUMBERS,
textInputType: TextInputType.number, textInputType: TextInputType.number,
@ -263,7 +263,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
), ),
), ),
AppText( AppText(
"Priority", TranslationBase.of(context).priority,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -273,14 +273,15 @@ class _ReferPatientState extends State<ReferPatientScreen> {
priorityBar(context), priorityBar(context),
AppText( AppText(
"Replay Before: " + getPriority(), TranslationBase.of(context).referralFrequency +
getPriority(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
marginTop: 15, marginTop: 15,
), ),
AppText( AppText(
"Referral Frequency", TranslationBase.of(context).referralFrequency,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -338,7 +339,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
_selectedReferralFrequancy)); _selectedReferralFrequancy));
freqId = freqInfo['ParameterCode'] freqId = freqInfo['ParameterCode']
.toString(); .toString();
myFocusNode.requestFocus(); myFocusNode.requestFocus();
}) })
}, },
items: patientsProv items: patientsProv
@ -359,7 +360,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
), ),
), ),
AppText( AppText(
"Clinical Details and Remarks", TranslationBase.of(context).clinicDetailsandRemarks,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
marginLeft: 15, marginLeft: 15,
@ -368,7 +369,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
Padding( Padding(
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
child: AppTextFormField( child: AppTextFormField(
hintText: "Remarks", hintText: TranslationBase.of(context).remarks,
focusNode: myFocusNode, focusNode: myFocusNode,
controller: _remarksController, controller: _remarksController,
inputFormatter: ONLY_LETTERS, inputFormatter: ONLY_LETTERS,
@ -381,7 +382,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
AppText( AppText(
"Please fill all fields..!", TranslationBase.of(context).pleaseFill,
color: Colors.red, color: Colors.red,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
margin: 10, margin: 10,
@ -389,7 +390,7 @@ class _ReferPatientState extends State<ReferPatientScreen> {
isValid == null ? false : !isValid, isValid == null ? false : !isValid,
), ),
AppButton( AppButton(
title: "Send", title: TranslationBase.of(context).send,
color: Color(PRIMARY_COLOR), color: Color(PRIMARY_COLOR),
onPressed: () => {referToDoctor(context)}, onPressed: () => {referToDoctor(context)},
) )
@ -402,6 +403,11 @@ class _ReferPatientState extends State<ReferPatientScreen> {
} }
Widget priorityBar(BuildContext _context) { Widget priorityBar(BuildContext _context) {
List<String> _priorities = [
TranslationBase.of(context).veryUrgent,
TranslationBase.of(context).urgent,
TranslationBase.of(context).routine,
];
return Container( return Container(
height: MediaQuery.of(context).size.height * 0.065, height: MediaQuery.of(context).size.height * 0.065,
width: SizeConfig.screenWidth * 0.9, width: SizeConfig.screenWidth * 0.9,

@ -68,7 +68,7 @@ class TranslationBase {
String get radiology => localizedValues['radiology'][locale.languageCode]; String get radiology => localizedValues['radiology'][locale.languageCode];
String get referral => localizedValues['referral'][locale.languageCode]; String get referral => localizedValues['referral'][locale.languageCode];
String get inPatient => localizedValues['inPatient'][locale.languageCode]; String get inPatient => localizedValues['inPatient'][locale.languageCode];
String get operations => localizedValues['inPatient'][locale.languageCode]; String get operations => localizedValues['operations'][locale.languageCode];
String get patientServices => String get patientServices =>
localizedValues['patientServices'][locale.languageCode]; localizedValues['patientServices'][locale.languageCode];
String get searchMedicine => String get searchMedicine =>
@ -179,6 +179,39 @@ class TranslationBase {
String get smsBy => localizedValues['smsBy'][locale.languageCode]; String get smsBy => localizedValues['smsBy'][locale.languageCode];
String get pleaseEnterTheCode => String get pleaseEnterTheCode =>
localizedValues['pleaseEnterTheCode'][locale.languageCode]; localizedValues['pleaseEnterTheCode'][locale.languageCode];
String get youDontHaveAnyPatient =>
localizedValues['youDon\'tHaveAnyPatient'][locale.languageCode];
String get age => localizedValues['age'][locale.languageCode];
String get today => localizedValues['today'][locale.languageCode];
String get tomorrow => localizedValues['tomorrow'][locale.languageCode];
String get all => localizedValues['all'][locale.languageCode];
String get nextWeek => localizedValues['nextWeek'][locale.languageCode];
String get yesterday => localizedValues['yesterday'][locale.languageCode];
String get errorNoInsuranceApprovals =>
localizedValues['errorNoInsuranceApprovals'][locale.languageCode];
String get searchInsuranceApprovals =>
localizedValues['searchInsuranceApprovals'][locale.languageCode];
String get status => localizedValues['status'][locale.languageCode];
String get expiryDate => localizedValues['expiryDate'][locale.languageCode];
String get producerName =>
localizedValues['producerName'][locale.languageCode];
String get receiptOn => localizedValues['receiptOn'][locale.languageCode];
String get approvalNo => localizedValues['approvalNo'][locale.languageCode];
String get doctor => localizedValues['doctor'][locale.languageCode];
String get ext => localizedValues['ext'][locale.languageCode];
String get veryUrgent => localizedValues['veryUrgent'][locale.languageCode];
String get urgent => localizedValues['urgent'][locale.languageCode];
String get routine => localizedValues['routine'][locale.languageCode];
String get send => localizedValues['send'][locale.languageCode];
String get referralFrequency =>
localizedValues['referralFrequency'][locale.languageCode];
String get clinicalDetailsAndRemarks =>
localizedValues['clinicalDetailsAndRemarks'][locale.languageCode];
String get remarks => localizedValues['remarks'][locale.languageCode];
String get pleaseFill => localizedValues['pleaseFill'][locale.languageCode];
String get replay2 => localizedValues['replay2'][locale.languageCode];
String get outPatient => localizedValues['outPatient'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

@ -72,7 +72,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
key: key, key: key,
patient: patient, patient: patient,
route: REFER_PATIENT, route: REFER_PATIENT,
name: 'Refer Patient', name: TranslationBase.of(context).myReferralPatient,
icon: 'note.png')), icon: 'note.png')),
Visibility( Visibility(
visible: selectedPatientType != 0 && selectedPatientType != 5, visible: selectedPatientType != 0 && selectedPatientType != 5,

@ -3,6 +3,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'bottom_navigation_item.dart'; import 'bottom_navigation_item.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
class BottomNavBar extends StatefulWidget { class BottomNavBar extends StatefulWidget {
final ValueChanged<int> changeIndex; final ValueChanged<int> changeIndex;
@ -41,7 +42,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: _index, index: _index,
currentIndex: 0, currentIndex: 0,
name: 'HOME', name: TranslationBase.of(context).home,
), ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.message_icon, icon: DoctorApp.message_icon,
@ -49,7 +50,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: _index, index: _index,
currentIndex: 1, currentIndex: 1,
name: 'REPLAY', name: TranslationBase.of(context).replay2,
), ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.schedule_icon, icon: DoctorApp.schedule_icon,
@ -57,7 +58,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: _index, index: _index,
currentIndex: 2, currentIndex: 2,
name: 'SCHEDULE', name: TranslationBase.of(context).mySchedule,
), ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.menu_icon, icon: DoctorApp.menu_icon,
@ -65,7 +66,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: _index, index: _index,
currentIndex: 3, currentIndex: 3,
name: 'SERVICES', name: TranslationBase.of(context).services,
) )
], ],
), ),

Loading…
Cancel
Save