ER Average waiting time label applied

merge-update-with-lab-changes
Zohaib Iqbal Kambrani 5 years ago
parent d33432d238
commit d1c99d1d82

@ -355,6 +355,7 @@ const Map localizedValues = {
"VitalSign": {"en": "Vital Sign", "ar": "العلامة حيوية"}, "VitalSign": {"en": "Vital Sign", "ar": "العلامة حيوية"},
"MonthlyReports": {"en": "Monthly Reports", "ar": "تقارير شهرية"}, "MonthlyReports": {"en": "Monthly Reports", "ar": "تقارير شهرية"},
"km": {"en": "KMs:", "ar": "كم"}, "km": {"en": "KMs:", "ar": "كم"},
"km_": {"en": "KM", "ar": "كم"},
"PatientHealthSummaryReport": {"en": "Patient Health Summary Report", "ar": " ملخص التقارير الشهرية"}, "PatientHealthSummaryReport": {"en": "Patient Health Summary Report", "ar": " ملخص التقارير الشهرية"},
"ToViewTheTermsAndConditions": {"en": "To View The Terms And Conditions Report", "ar": " عرض الشروط والأحكام "}, "ToViewTheTermsAndConditions": {"en": "To View The Terms And Conditions Report", "ar": " عرض الشروط والأحكام "},
"ClickHere": {"en": "Click here", "ar": "أنقر هنا"}, "ClickHere": {"en": "Click here", "ar": "أنقر هنا"},
@ -396,6 +397,7 @@ const Map localizedValues = {
"Ok": {"en": "Ok", "ar": "حسنا"}, "Ok": {"en": "Ok", "ar": "حسنا"},
"WaterConsumedInWeek": {"en": "Water consumed in a week", "ar": "معدل شرب الماء خلال الاسبوع"}, "WaterConsumedInWeek": {"en": "Water consumed in a week", "ar": "معدل شرب الماء خلال الاسبوع"},
"WaterConsumedInMonth": {"en": "Water consumed in a month", "ar": "معدل شرب الماء خلال الشهر"}, "WaterConsumedInMonth": {"en": "Water consumed in a month", "ar": "معدل شرب الماء خلال الشهر"},
"averageWaitingTime": {"en": "Average Waiting Time:", "ar": "متوسط ​​وقت الانتظار:"},
"TheVerificationCodeExpiresIn": {"en": "The Verification Code Expires In", "ar": "تنتهي صلاحية رمز التحقق في"}, "TheVerificationCodeExpiresIn": {"en": "The Verification Code Expires In", "ar": "تنتهي صلاحية رمز التحقق في"},
"PleaseEnterTheVerificationCode": {"en": "Please enter the verification code send to", "ar": "الرجاء إدخال رمز التحقق المرسل إلى"}, "PleaseEnterTheVerificationCode": {"en": "Please enter the verification code send to", "ar": "الرجاء إدخال رمز التحقق المرسل إلى"},
"EyeMeasurements": {"en": "Eye Measurements", "ar": "قياسات النظر"}, "EyeMeasurements": {"en": "Eye Measurements", "ar": "قياسات النظر"},

@ -60,16 +60,17 @@ class NearestEr extends StatelessWidget {
children: List.generate(7, (index) { children: List.generate(7, (index) {
return Container( return Container(
child: CardPosition( child: CardPosition(
waitingTime: mode
.ProjectAvgERWaitingTimeModeList[index]
.avgTimeInHHMM
.toString(),
text: mode text: mode
.ProjectAvgERWaitingTimeModeList[index] .ProjectAvgERWaitingTimeModeList[index]
.projectName .projectName
.toString(), .toString(),
image: image:
'assets/images/new-design/find_us_icon.png', 'assets/images/new-design/find_us_icon.png',
subText: mode subText: '${mode.ProjectAvgERWaitingTimeModeList[index].distanceInKilometers ?? 0.0} ${TranslationBase.of(context).km_}',
.ProjectAvgERWaitingTimeModeList[index]
.distanceInKilometers
.toString(),
type: mode type: mode
.ProjectAvgERWaitingTimeModeList[index].iD .ProjectAvgERWaitingTimeModeList[index].iD
.toString(), .toString(),

@ -1,6 +1,7 @@
//import 'package:diplomaticquarterapp/pages/BookAppointment/Search.dart'; //import 'package:diplomaticquarterapp/pages/BookAppointment/Search.dart';
import 'package:diplomaticquarterapp/config/size_config.dart'; import 'package:diplomaticquarterapp/config/size_config.dart';
import 'package:diplomaticquarterapp/pages/BookAppointment/Search.dart'; import 'package:diplomaticquarterapp/pages/BookAppointment/Search.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:giffy_dialog/giffy_dialog.dart'; import 'package:giffy_dialog/giffy_dialog.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
@ -20,6 +21,7 @@ class CardPosition extends StatelessWidget {
final longitude; final longitude;
final projectname; final projectname;
final cardSize; final cardSize;
final String waitingTime;
const CardPosition( const CardPosition(
{ {
@ -32,7 +34,8 @@ class CardPosition extends StatelessWidget {
@required this.latitude, @required this.latitude,
@required this.longitude, @required this.longitude,
@required this.projectname , @required this.projectname ,
@required this.cardSize , @required this.cardSize,
@required this.waitingTime ,
}); });
@override @override
@ -83,31 +86,26 @@ class CardPosition extends StatelessWidget {
} }
Future navigateToSearch(context, type,telephone,networkImage,latitude,longitude,projectname) async { Future navigateToSearch(context, type,telephone,networkImage,latitude,longitude,projectname) async {
var localize = TranslationBase.of(context);
showDialog( showDialog(
context: context,builder: (_) => AssetGiffyDialog( context: context,builder: (_) => AssetGiffyDialog(
entryAnimation: EntryAnimation.BOTTOM,
image:Image.network(networkImage, fit: BoxFit.cover,),
title: Text(projectname, title: Text(projectname,
style: TextStyle( style: TextStyle(
fontSize: 22.0, fontWeight: FontWeight.w600), fontSize: 22.0, fontWeight: FontWeight.w600),
),image:Image.network(networkImage, fit: BoxFit.cover,), ),
description: Text("${localize.averageWaitingTime}\n\n$waitingTime ${localize.minute}", textAlign: TextAlign.center,),
buttonOkText:Text("LOCATION"), buttonOkText:Text("LOCATION", style: TextStyle(color: Colors.white),),
buttonOkColor: Colors.grey, buttonOkColor: Colors.grey,
buttonCancelText:Text('CAll') , buttonCancelText:Text('CAll', style: TextStyle(color: Colors.white),) ,
buttonCancelColor: Colors.grey, buttonCancelColor: Colors.grey,
onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);}, onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);},
onCancelButtonPressed :() {launch("tel://" +telephone);} onCancelButtonPressed :() {launch("tel://" +telephone);}
));
) );
} }
} }

@ -461,6 +461,7 @@ class TranslationBase {
String get userView => localizedValues['user-view'][locale.languageCode]; String get userView => localizedValues['user-view'][locale.languageCode];
String get sentRequest => localizedValues['sent-requests'][locale.languageCode]; String get sentRequest => localizedValues['sent-requests'][locale.languageCode];
String get km => localizedValues['km'][locale.languageCode]; String get km => localizedValues['km'][locale.languageCode];
String get km_ => localizedValues['km_'][locale.languageCode];
String get patientHealthSummaryReport => localizedValues['PatientHealthSummaryReport'][locale.languageCode]; String get patientHealthSummaryReport => localizedValues['PatientHealthSummaryReport'][locale.languageCode];
String get toViewTheTermsAndConditions => localizedValues['ToViewTheTermsAndConditions'][locale.languageCode]; String get toViewTheTermsAndConditions => localizedValues['ToViewTheTermsAndConditions'][locale.languageCode];
String get clickHere => localizedValues['ClickHere'][locale.languageCode]; String get clickHere => localizedValues['ClickHere'][locale.languageCode];
@ -500,6 +501,7 @@ class TranslationBase {
String get ok => localizedValues['Ok'][locale.languageCode]; String get ok => localizedValues['Ok'][locale.languageCode];
String get waterConsumedInWeek => localizedValues['WaterConsumedInWeek'][locale.languageCode]; String get waterConsumedInWeek => localizedValues['WaterConsumedInWeek'][locale.languageCode];
String get waterConsumedInMonth => localizedValues['WaterConsumedInMonth'][locale.languageCode]; String get waterConsumedInMonth => localizedValues['WaterConsumedInMonth'][locale.languageCode];
String get averageWaitingTime => localizedValues['averageWaitingTime'][locale.languageCode];
String get theVerificationCodeExpiresIn => localizedValues['TheVerificationCodeExpiresIn'][locale.languageCode]; String get theVerificationCodeExpiresIn => localizedValues['TheVerificationCodeExpiresIn'][locale.languageCode];
String get pleaseEnterTheVerificationCode => localizedValues['PleaseEnterTheVerificationCode'][locale.languageCode]; String get pleaseEnterTheVerificationCode => localizedValues['PleaseEnterTheVerificationCode'][locale.languageCode];
String get eyeMeasurements => localizedValues['EyeMeasurements'][locale.languageCode]; String get eyeMeasurements => localizedValues['EyeMeasurements'][locale.languageCode];

Loading…
Cancel
Save