# Conflicts:
#	lib/config/config.dart
#	lib/screens/dashboard_screen.dart
#	lib/screens/patients/patients_screen.dart
merge-requests/125/head
Salman Afzal 6 years ago
commit 11f10f1eea

@ -0,0 +1 @@
<svg id="Layer_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m496 144c-8.837 0-16-7.164-16-16v-82c0-7.72-6.28-14-14-14h-82c-8.837 0-16-7.164-16-16s7.163-16 16-16h82c25.364 0 46 20.636 46 46v82c0 8.836-7.163 16-16 16z"/><path d="m16 144c-8.837 0-16-7.164-16-16v-82c0-25.364 20.636-46 46-46h82c8.837 0 16 7.164 16 16s-7.163 16-16 16h-82c-7.72 0-14 6.28-14 14v82c0 8.836-7.163 16-16 16z"/><path d="m128 512h-82c-25.364 0-46-20.636-46-46v-82c0-8.836 7.163-16 16-16s16 7.164 16 16v82c0 7.72 6.28 14 14 14h82c8.837 0 16 7.164 16 16s-7.163 16-16 16z"/><path d="m466 512h-82c-8.837 0-16-7.164-16-16s7.163-16 16-16h82c7.72 0 14-6.28 14-14v-82c0-8.836 7.163-16 16-16s16 7.164 16 16v82c0 25.364-20.636 46-46 46z"/><path d="m194 240h-84c-25.364 0-46-20.636-46-46v-84c0-25.364 20.636-46 46-46h84c25.364 0 46 20.636 46 46v84c0 25.364-20.636 46-46 46zm-84-144c-7.72 0-14 6.28-14 14v84c0 7.72 6.28 14 14 14h84c7.72 0 14-6.28 14-14v-84c0-7.72-6.28-14-14-14z"/><path d="m194 448h-84c-25.364 0-46-20.636-46-46v-84c0-25.364 20.636-46 46-46h84c25.364 0 46 20.636 46 46v84c0 25.364-20.636 46-46 46zm-84-144c-7.72 0-14 6.28-14 14v84c0 7.72 6.28 14 14 14h84c7.72 0 14-6.28 14-14v-84c0-7.72-6.28-14-14-14z"/><path d="m402 240h-84c-25.364 0-46-20.636-46-46v-84c0-25.364 20.636-46 46-46h84c25.364 0 46 20.636 46 46v84c0 25.364-20.636 46-46 46zm-84-144c-7.72 0-14 6.28-14 14v84c0 7.72 6.28 14 14 14h84c7.72 0 14-6.28 14-14v-84c0-7.72-6.28-14-14-14z"/><path d="m422 352h-38v-54c0-14.336-11.663-26-26-26h-60c-14.337 0-26 11.664-26 26v60c0 14.336 11.663 26 26 26h54v38c0 14.336 11.663 26 26 26h44c14.337 0 26-11.664 26-26v-44c0-14.336-11.663-26-26-26zm-118-48h48v48h-48zm112 112h-32v-32h32z"/><path d="m160 176h-16c-8.837 0-16-7.164-16-16v-16c0-8.836 7.163-16 16-16h16c8.837 0 16 7.164 16 16v16c0 8.836-7.163 16-16 16z"/><path d="m368 176h-16c-8.837 0-16-7.164-16-16v-16c0-8.836 7.163-16 16-16h16c8.837 0 16 7.164 16 16v16c0 8.836-7.163 16-16 16z"/><path d="m160 384h-16c-8.837 0-16-7.164-16-16v-16c0-8.836 7.163-16 16-16h16c8.837 0 16 7.164 16 16v16c0 8.836-7.163 16-16 16z"/></g></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -66,4 +66,4 @@ const IS_LOGIN_FOR_DOCTOR_APP = true;
const PATIENT_OUT_SA = false; const PATIENT_OUT_SA = false;
/// Timer Info /// Timer Info
const TIMER_MIN =10; const TIMER_MIN = 10;

@ -4,21 +4,42 @@ const Map<String, Map<String, String>> localizedValues = {
'language': {'en': 'App Language', 'ar': 'لغة التطبيق'}, 'language': {'en': 'App Language', 'ar': 'لغة التطبيق'},
'lanEnglish': {'en': 'English', 'ar': 'English'}, 'lanEnglish': {'en': 'English', 'ar': 'English'},
'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': 'جدولي'},
'errorNoSchedule' :{'en': 'You don\'t have any Schedule' , 'ar': 'ليس لديك أي جدول زمني'}, 'errorNoSchedule': {
'verify': {'en': 'Verify', 'ar' : 'تحقق'}, 'en': 'You don\'t have any Schedule',
'referralDoctor':{'en': 'Referral Doctor', 'ar' : 'الطبيب المُحول إليه'}, 'ar': 'ليس لديك أي جدول زمني'
'referringClinic':{'en': 'Referring Clinic', 'ar' : 'العيادة المُحول إليها'}, },
'frequency':{'en': 'Frequency', 'ar' : 'نوع التحويلا'}, 'verify': {'en': 'Verify', 'ar': 'تحقق'},
'priority':{'en': 'Priority', 'ar' : 'الأولوية'}, 'referralDoctor': {'en': 'Referral Doctor', 'ar': 'الطبيب المُحول إليه'},
'maxResponseTime':{'en': 'Max Response Time', 'ar' : 'الوقت الأقصى للرد'}, 'referringClinic': {'en': 'Referring Clinic', 'ar': 'العيادة المُحول إليها'},
'clinicDetailsandRemarks':{'en': 'Clinic Details and Remarks', 'ar' : 'ملاحضات وتفاصيل العيادة'}, 'frequency': {'en': 'Frequency', 'ar': 'نوع التحويلا'},
'answerSuggestions':{'en': 'Answer/Suggestions', 'ar' : 'ملاحضات وتفاصيل العيادة'}, 'priority': {'en': 'Priority', 'ar': 'الأولوية'},
'maxResponseTime': {'en': 'Max Response Time', 'ar': 'الوقت الأقصى للرد'},
'clinicDetailsandRemarks': {
'en': 'Clinic Details and Remarks',
'ar': 'ملاحضات وتفاصيل العيادة'
},
'answerSuggestions': {
'en': 'Answer/Suggestions',
'ar': 'ملاحضات وتفاصيل العيادة'
},
'outPatients': {'en': 'Out-Patients', 'ar': 'ةالمريض الخارجي'},
'searchPatient': {'en': 'Search Patient', 'ar': 'البحث عن مريض'},
'labResult': {'en': 'Lab Result', 'ar': 'نتيجة المختبر'},
'todayStatistics': {'en': 'Today Statistics', 'ar': 'إحصائيات اليوم'},
'arrived': {'en': 'Arrived', 'ar': 'وصل'},
'er': {'en': 'ER', 'ar': 'حالة طوارئ'},
'walkIn': {'en': 'Walk-in', 'ar': 'ادخل'},
'notArrived': {'en': 'Not Arrived', 'ar': 'لم يصل'},
'radiology': {'en': 'Radiology', 'ar': 'الأشعة'},
'referral': {'en': 'Referral', 'ar': 'االإحالة'},
'inPatient': {'en': 'In-Patient', 'ar': 'االمريض الداخلي'},
'operations': {'en': 'Operations', 'ar': 'عمليات'},
'patientServices': {'en': 'Patient Services', 'ar': 'خدمات المرضى'},
'familyMedicine': {'en': 'Family Medicine Clinic', 'ar': 'عيادة طب الأسرة'}
}; };

@ -4,6 +4,7 @@ import 'package:doctor_app_flutter/providers/medicine_provider.dart';
import 'package:doctor_app_flutter/providers/hospital_provider.dart'; import 'package:doctor_app_flutter/providers/hospital_provider.dart';
import 'package:doctor_app_flutter/providers/referral_patient_provider.dart'; import 'package:doctor_app_flutter/providers/referral_patient_provider.dart';
import 'package:doctor_app_flutter/providers/referred_patient_provider.dart'; import 'package:doctor_app_flutter/providers/referred_patient_provider.dart';
import 'package:doctor_app_flutter/screens/QR_reader_screen.dart';
import 'package:doctor_app_flutter/screens/medicine/medicine_search_screen.dart'; import 'package:doctor_app_flutter/screens/medicine/medicine_search_screen.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/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
@ -42,19 +43,37 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Scaffold( child: Scaffold(
body: SingleChildScrollView( body: SingleChildScrollView(
child: SizedBox( child: SizedBox(
height: MediaQuery.of(context).size.height, height: MediaQuery.of(context).size.height * 1.09,
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Expanded( Row(
flex: 1, mainAxisAlignment: MainAxisAlignment.spaceBetween,
child: Container( mainAxisSize: MainAxisSize.max,
margin: EdgeInsets.all(10), crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(left: 10, top: 10),
child: AppText( child: AppText(
"Today's Statistics", TranslationBase.of(context).familyMedicine,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: SizeConfig.textMultiplier * 2.5,
), ),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
), ),
Container(
margin: EdgeInsets.only(left: 10, top: 10, right: 10),
child: Icon(
Icons.settings,
size: SizeConfig.textMultiplier * 2.5,
))
]),
Container(
margin: EdgeInsets.only(left: 10, top: 5),
child: AppText(
TranslationBase.of(context).todayStatistics,
fontWeight: FontWeight.bold,
),
alignment: Alignment.centerLeft,
), ),
Expanded( Expanded(
flex: 3, flex: 3,
@ -76,7 +95,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
AppText("38", AppText("38",
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: SizeConfig.textMultiplier * 4), fontSize: SizeConfig.textMultiplier * 4),
AppText("Out-Patients", AppText(TranslationBase.of(context).outPatients,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
fontSize: SizeConfig.textMultiplier * 1.1, fontSize: SizeConfig.textMultiplier * 1.1,
color: Colors.grey[800]), color: Colors.grey[800]),
@ -103,12 +122,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
"Arrived", TranslationBase.of(context).arrived,
"23", "23",
)), )),
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
"Not Arrived", TranslationBase.of(context)
.notArrived,
"23", "23",
), ),
), ),
@ -122,12 +142,12 @@ class _DashboardScreenState extends State<DashboardScreen> {
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
"ER", TranslationBase.of(context).er,
"23", "23",
)), )),
Expanded( Expanded(
child: DashboardItemTexts( child: DashboardItemTexts(
"Walk-in", TranslationBase.of(context).walkIn,
"23", "23",
)), )),
], ],
@ -148,7 +168,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText( child: new DashboardItemIconText(
widget.iconURL + 'lab_results.svg', widget.iconURL + 'lab_results.svg',
"08", "08",
"Lab Result", TranslationBase.of(context).labResult,
backgroundColor: Colors.black45, backgroundColor: Colors.black45,
// valueFontColor: Colors.white, // valueFontColor: Colors.white,
// titleFontColor: Colors.white, // titleFontColor: Colors.white,
@ -160,7 +180,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText( child: new DashboardItemIconText(
widget.iconURL + 'radiology.svg', widget.iconURL + 'radiology.svg',
"10", "10",
"Radiology", TranslationBase.of(context).radiology,
backgroundColor: Colors.black45, backgroundColor: Colors.black45,
// valueFontColor: Colors.white, // valueFontColor: Colors.white,
// titleFontColor: Colors.white, // titleFontColor: Colors.white,
@ -171,7 +191,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText( child: new DashboardItemIconText(
widget.iconURL + 'referral.svg', widget.iconURL + 'referral.svg',
"05", "05",
"Referral", TranslationBase.of(context).referral,
backgroundColor: Colors.black45, backgroundColor: Colors.black45,
// valueFontColor: Colors.white, // valueFontColor: Colors.white,
// titleFontColor: Colors.white, // titleFontColor: Colors.white,
@ -200,7 +220,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText( child: new DashboardItemIconText(
widget.iconURL + 'operations.svg', widget.iconURL + 'operations.svg',
"23", "23",
"Operations", TranslationBase.of(context).operations,
showBorder: true, showBorder: true,
backgroundColor: Colors.red[900], backgroundColor: Colors.red[900],
)), )),
@ -212,7 +232,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Container( child: Container(
margin: EdgeInsets.all(10), margin: EdgeInsets.all(10),
child: AppText( child: AppText(
"Patient Services", TranslationBase.of(context).patientServices,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
@ -228,7 +248,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: DashboardItemIconText( child: DashboardItemIconText(
widget.iconURL + 'search_patient.svg', widget.iconURL + 'search_patient.svg',
"", "",
"Search Patient", TranslationBase.of(context).searchPatient,
showBorder: true, showBorder: true,
backgroundColor: Colors.white, backgroundColor: Colors.white,
valueFontColor: Colors.black, valueFontColor: Colors.black,
@ -258,7 +278,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: DashboardItemIconText( child: DashboardItemIconText(
widget.iconURL + 'message_icon.svg', widget.iconURL + 'message_icon.svg',
"", "",
"Doctor Reply", TranslationBase.of(context).doctorReply,
showBorder: true, showBorder: true,
backgroundColor: Colors.white, backgroundColor: Colors.white,
valueFontColor: Colors.black, valueFontColor: Colors.black,
@ -365,7 +385,25 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
), ),
), ),
Expanded(flex: 1, child: Container()) Expanded(
flex: 1,
child: InkWell(
onTap: () {
Navigator.of(context).pushNamed(QR_READER);
},
child: DashboardItemIconText(
widget.iconURL + 'qr-code.svg',
"",
"QR Reader",
showBorder: true,
backgroundColor: Colors.white,
valueFontColor: Colors.black,
titleFontColor: Colors.black,
iconColor: Colors.black,
titleFontSize: SizeConfig.textMultiplier * 2,
),
),
),
], ],
)), )),
], ],

@ -43,6 +43,7 @@ class MyReferralPatient extends StatelessWidget {
children: <Widget>[ children: <Widget>[
SizedBox( SizedBox(
height: 10, height: 10,
), ),
Container( Container(
child: Column( child: Column(

@ -315,7 +315,7 @@ class _PatientsScreenState extends State<PatientsScreen> {
child: Center( child: Center(
child: Padding( child: Padding(
padding: const EdgeInsets.fromLTRB( padding: const EdgeInsets.fromLTRB(
0, 250, 0, 0), 0, 0, 0, 0), //250
child: child:
DrAppCircularProgressIndeicator(), DrAppCircularProgressIndeicator(),
)), )),
@ -365,13 +365,17 @@ class _PatientsScreenState extends State<PatientsScreen> {
// mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
children: responseModelList children: responseModelList
.map((PatiantInformtion item) { .map((PatiantInformtion item) {
return InkWell( return Container(
decoration: myBoxDecoration(),
child: InkWell(
child: CardWithBgWidgetNew( child: CardWithBgWidgetNew(
//CardWithBgWidget( //CardWithBgWidget(
widget: Column( widget: Column(
children: <Widget>[ children: <Widget>[
Row( Container(
// decoration: myBoxDecoration(),
child: Row(
children: <Widget>[ children: <Widget>[
Column( Column(
mainAxisAlignment: mainAxisAlignment:
@ -382,25 +386,17 @@ class _PatientsScreenState extends State<PatientsScreen> {
"Male" "Male"
? [ ? [
SvgPicture.asset( SvgPicture.asset(
url + url + avatarMale,
avatarMale, height: 80.0,
height: width: 80.0,
80.0, semanticsLabel: 'Male Logo')
width:
80.0,
semanticsLabel:
'Male Logo')
] ]
: [ : [
SvgPicture.asset( SvgPicture.asset(
url + url + avatarFemale,
avatarFemale, height: 80.0,
height: width: 80.0,
80.0, semanticsLabel: 'Female Logo')
width:
80.0,
semanticsLabel:
'Female Logo')
], ],
), ),
SizedBox( SizedBox(
@ -410,7 +406,8 @@ class _PatientsScreenState extends State<PatientsScreen> {
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment CrossAxisAlignment
.start, .start,
children: <Widget>[ children: <
Widget>[
AppText( AppText(
item.firstName + item.firstName +
" " + " " +
@ -422,7 +419,8 @@ class _PatientsScreenState extends State<PatientsScreen> {
FontWeight FontWeight
.bold, .bold,
backGroundcolor: backGroundcolor:
Colors.white, Colors
.white,
), ),
SizedBox( SizedBox(
height: 8, height: 8,
@ -438,7 +436,8 @@ class _PatientsScreenState extends State<PatientsScreen> {
FontWeight FontWeight
.bold, .bold,
backGroundcolor: backGroundcolor:
Colors.white, Colors
.white,
), ),
// SizedBox( // SizedBox(
@ -455,19 +454,18 @@ class _PatientsScreenState extends State<PatientsScreen> {
FontWeight FontWeight
.bold, .bold,
backGroundcolor: backGroundcolor:
Colors.white, Colors
.white,
), ),
SizedBox( SizedBox(
height: 8, height: 8,
), ),
SERVICES_PATIANT2[int SERVICES_PATIANT2[
.parse( int.parse(patientType)] ==
patientType)] ==
"List_MyOutPatient" "List_MyOutPatient"
? Row( ? Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment MainAxisAlignment.spaceBetween,
.spaceBetween,
children: < children: <
Widget>[ Widget>[
Container( Container(
@ -477,22 +475,16 @@ class _PatientsScreenState extends State<PatientsScreen> {
80, 80,
decoration: decoration:
BoxDecoration( BoxDecoration(
borderRadius: borderRadius: BorderRadius.circular(50),
BorderRadius.circular(50), color: Hexcolor("#20A169"),
color:
Hexcolor("#20A169"),
), ),
child: child:
AppText( AppText(
item.startTime, item.startTime,
color: color: Colors.white,
Colors.white, fontSize: 2 * SizeConfig.textMultiplier,
fontSize: textAlign: TextAlign.center,
2 * SizeConfig.textMultiplier, fontWeight: FontWeight.bold,
textAlign:
TextAlign.center,
fontWeight:
FontWeight.bold,
), ),
), ),
SizedBox( SizedBox(
@ -502,38 +494,38 @@ class _PatientsScreenState extends State<PatientsScreen> {
Container( Container(
child: child:
AppText( AppText(
convertDateFormat2(item convertDateFormat2(item.appointmentDate.toString()),
.appointmentDate fontSize: 2.0 * SizeConfig.textMultiplier,
.toString()), fontWeight: FontWeight.bold,
fontSize:
2.0 * SizeConfig.textMultiplier,
fontWeight:
FontWeight.bold,
), ),
) )
], ],
) )
: AppText( : AppText(
item.nationalityName, item.nationalityName,
fontSize: 2.5 * fontSize:
SizeConfig 2.5 *
.textMultiplier, SizeConfig.textMultiplier,
), ),
], ],
), ),
// Divider(color: Colors.grey)
], ],
), ),
Divider(color: Colors.grey) ),
// Divider(color: Colors.grey)
], ],
), ),
), ),
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context)
.pushNamed(
PATIENTS_PROFILE, PATIENTS_PROFILE,
arguments: { arguments: {
"patient": item "patient": item
}); });
}, },
),
); );
}).toList(), }).toList(),
), ),
@ -627,4 +619,16 @@ class _PatientsScreenState extends State<PatientsScreen> {
), ),
); );
} }
myBoxDecoration() {
return BoxDecoration(
border: Border(
bottom: BorderSide(
// <--- top side
color: Colors.grey,
width: 1.0,
),
),
);
}
} }

@ -13,9 +13,8 @@ class TranslationBase {
return Localizations.of<TranslationBase>(context, TranslationBase); return Localizations.of<TranslationBase>(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 settings => localizedValues['settings'][locale.languageCode];
@ -33,23 +32,45 @@ class TranslationBase {
String get mobileNo => localizedValues['mobileNo'][locale.languageCode]; String get mobileNo => localizedValues['mobileNo'][locale.languageCode];
String get messagesScreenToolbarTitle => localizedValues['messagesScreenToolbarTitle'][locale.languageCode]; String get messagesScreenToolbarTitle =>
localizedValues['messagesScreenToolbarTitle'][locale.languageCode];
String get mySchedule => localizedValues['mySchedule'][locale.languageCode]; String get mySchedule => localizedValues['mySchedule'][locale.languageCode];
String get errorNoSchedule => localizedValues['errorNoSchedule'][locale.languageCode]; String get errorNoSchedule =>
localizedValues['errorNoSchedule'][locale.languageCode];
String get verify => localizedValues['verify'][locale.languageCode]; String get verify => localizedValues['verify'][locale.languageCode];
String get referralDoctor => localizedValues['referralDoctor'][locale.languageCode]; String get referralDoctor =>
String get referringClinic => localizedValues['referringClinic'][locale.languageCode]; localizedValues['referralDoctor'][locale.languageCode];
String get referringClinic =>
localizedValues['referringClinic'][locale.languageCode];
String get frequency => localizedValues['frequency'][locale.languageCode]; String get frequency => localizedValues['frequency'][locale.languageCode];
String get priority => localizedValues['priority'][locale.languageCode]; String get priority => localizedValues['priority'][locale.languageCode];
String get maxResponseTime => localizedValues['maxResponseTime'][locale.languageCode]; String get maxResponseTime =>
String get clinicDetailsandRemarks=> localizedValues['clinicDetailsandRemarks'][locale.languageCode]; localizedValues['maxResponseTime'][locale.languageCode];
String get answerSuggestions => localizedValues['answerSuggestions'][locale.languageCode]; String get clinicDetailsandRemarks =>
localizedValues['clinicDetailsandRemarks'][locale.languageCode];
String get answerSuggestions =>
localizedValues['answerSuggestions'][locale.languageCode];
String get outPatients => localizedValues['outPatients'][locale.languageCode];
String get searchPatient =>
localizedValues['searchPatient'][locale.languageCode];
String get labResult => localizedValues['labResult'][locale.languageCode];
String get todayStatistics =>
localizedValues['todayStatistics'][locale.languageCode];
String get familyMedicine =>
localizedValues['familyMedicine'][locale.languageCode];
String get arrived => localizedValues['arrived'][locale.languageCode];
String get er => localizedValues['er'][locale.languageCode];
String get walkIn => localizedValues['walkIn'][locale.languageCode];
String get notArrived => localizedValues['notArrived'][locale.languageCode];
String get radiology => localizedValues['radiology'][locale.languageCode];
String get referral => localizedValues['referral'][locale.languageCode];
String get inPatient => localizedValues['inPatient'][locale.languageCode];
String get operations => localizedValues['inPatient'][locale.languageCode];
String get patientServices =>
localizedValues['patientServices'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

@ -23,6 +23,7 @@ Helpers helpers = Helpers();
class LoginForm extends StatefulWidget with DrAppToastMsg { class LoginForm extends StatefulWidget with DrAppToastMsg {
LoginForm({this.changeLoadingStata}); LoginForm({this.changeLoadingStata});
final Function changeLoadingStata; final Function changeLoadingStata;
@override @override
@ -85,7 +86,7 @@ class _LoginFormState extends State<LoginForm> {
return null; return null;
}, },
onSaved: (value) { onSaved: (value) {
userInfo.UserID = value; userInfo.UserID = value.trim();
}, },
onFieldSubmitted: (_) { onFieldSubmitted: (_) {
FocusScope.of(context).requestFocus(focusPass); FocusScope.of(context).requestFocus(focusPass);
@ -337,6 +338,7 @@ class _LoginFormState extends State<LoginForm> {
userInfo.ProjectID = projectsList[index]["ID"]; userInfo.ProjectID = projectsList[index]["ID"];
projectIdController.text = projectsList[index]['Name']; projectIdController.text = projectsList[index]['Name'];
}); });
FocusScope.of(context).requestFocus(focusProject);
primaryFocus.unfocus();
} }
} }

@ -21,7 +21,9 @@ Helpers helpers = Helpers();
class VerifyAccount extends StatefulWidget { class VerifyAccount extends StatefulWidget {
VerifyAccount({this.changeLoadingStata}); VerifyAccount({this.changeLoadingStata});
final Function changeLoadingStata; final Function changeLoadingStata;
@override @override
_VerifyAccountState createState() => _VerifyAccountState(); _VerifyAccountState createState() => _VerifyAccountState();
} }
@ -37,8 +39,9 @@ class _VerifyAccountState extends State<VerifyAccount> {
Future _loggedUserFuture; Future _loggedUserFuture;
var _loggedUser; var _loggedUser;
AuthProvider authProv; AuthProvider authProv;
bool _isInit =true; bool _isInit = true;
var model; var model;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -100,18 +103,23 @@ class _VerifyAccountState extends State<VerifyAccount> {
maxLength: 1, maxLength: 1,
textAlign: TextAlign.center, textAlign: TextAlign.center,
keyboardType: TextInputType.number, keyboardType: TextInputType.number,
decoration: decoration: buildInputDecoration(context),
buildInputDecoration(context),
onSaved: (val) { onSaved: (val) {
verifyAccountFormValue['digit1'] = verifyAccountFormValue['digit1'] = val;
val;
}, },
validator: validateCodeDigit, validator: validateCodeDigit,
onFieldSubmitted: (_) { onFieldSubmitted: (_) {
FocusScope.of(context) FocusScope.of(context)
.requestFocus(focusD2); .requestFocus(focusD2);
}, },
)), onChanged: (val) {
if (val.length == 1) {
FocusScope.of(context)
.requestFocus(focusD2);
}
},
),
),
Container( Container(
width: SizeConfig.realScreenWidth * 0.20, width: SizeConfig.realScreenWidth * 0.20,
child: TextFormField( child: TextFormField(
@ -131,6 +139,12 @@ class _VerifyAccountState extends State<VerifyAccount> {
FocusScope.of(context) FocusScope.of(context)
.requestFocus(focusD3); .requestFocus(focusD3);
}, },
onChanged: (val) {
if (val.length == 1) {
FocusScope.of(context)
.requestFocus(focusD3);
}
},
validator: validateCodeDigit), validator: validateCodeDigit),
), ),
Container( Container(
@ -152,6 +166,12 @@ class _VerifyAccountState extends State<VerifyAccount> {
FocusScope.of(context) FocusScope.of(context)
.requestFocus(focusD4); .requestFocus(focusD4);
}, },
onChanged: (val) {
if (val.length == 1) {
FocusScope.of(context)
.requestFocus(focusD4);
}
},
validator: validateCodeDigit)), validator: validateCodeDigit)),
Container( Container(
width: SizeConfig.realScreenWidth * 0.20, width: SizeConfig.realScreenWidth * 0.20,

@ -53,30 +53,38 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
route: RADIOLOGY, route: RADIOLOGY,
name: 'Radiology', name: 'Radiology',
icon: 'radiology-1.png'), icon: 'radiology-1.png'),
PatientProfileButton( Visibility(
visible: selectedPatientType != 0 && selectedPatientType != 5,
child: PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: PROGRESS_NOTE, route: PROGRESS_NOTE,
name: 'Progress Notes', name: 'Progress Notes',
icon: 'heartbeat.png'), icon: 'heartbeat.png')),
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: PATIENT_INSURANCE_APPROVALS, route: PATIENT_INSURANCE_APPROVALS,
name: 'Insurance Aprovals', name: 'Insurance Aprovals',
icon: 'lab.png'), icon: 'lab.png'),
PatientProfileButton( Visibility(
visible: selectedPatientType != 0 &&
selectedPatientType != 5 &&
selectedPatientType != 2,
child: PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: PRESCRIPTIONS, route: PRESCRIPTIONS,
name: 'Refer Patient', name: 'Refer Patient',
icon: 'note.png'), icon: 'note.png')),
PatientProfileButton( Visibility(
visible: selectedPatientType != 0 && selectedPatientType != 5,
child: PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: PATIENT_ORDERS, route: PATIENT_ORDERS,
name: 'Orders', name: 'Orders',
icon: 'radiology-1.png'), icon: 'radiology-1.png')),
]); ]);
// child: ListView( // child: ListView(
// children: <Widget>[ // children: <Widget>[

@ -36,6 +36,7 @@ class CardWithBgWidgetNew extends StatelessWidget {
children: [ children: [
Center( Center(
child: Container( child: Container(
// padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10 // padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10
// margin: EdgeInsets.only(left: 10), // margin: EdgeInsets.only(left: 10),
child: Padding( child: Padding(
@ -48,4 +49,6 @@ class CardWithBgWidgetNew extends StatelessWidget {
), ),
); );
} }
} }

Loading…
Cancel
Save