# 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,
child: AppText( children: <Widget>[
"Today's Statistics", Container(
fontWeight: FontWeight.bold, margin: EdgeInsets.only(left: 10, top: 10),
), child: AppText(
alignment: Alignment.centerLeft, TranslationBase.of(context).familyMedicine,
fontWeight: FontWeight.bold,
fontSize: SizeConfig.textMultiplier * 2.5,
),
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]),
@ -99,16 +118,17 @@ class _DashboardScreenState extends State<DashboardScreen> {
flex: 1, flex: 1,
child: Column( child: Column(
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.stretch, CrossAxisAlignment.stretch,
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",
), ),
), ),
@ -117,21 +137,21 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.stretch, CrossAxisAlignment.stretch,
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,175 +365,167 @@ 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(
child: CardWithBgWidgetNew( decoration: myBoxDecoration(),
//CardWithBgWidget( child: InkWell(
child: CardWithBgWidgetNew(
widget: Column( //CardWithBgWidget(
children: <Widget>[
Row( widget: Column(
children: <Widget>[ children: <Widget>[
Column( Container(
mainAxisAlignment: // decoration: myBoxDecoration(),
MainAxisAlignment child: Row(
.start,
children:
item.genderDescription ==
"Male"
? [
SvgPicture.asset(
url +
avatarMale,
height:
80.0,
width:
80.0,
semanticsLabel:
'Male Logo')
]
: [
SvgPicture.asset(
url +
avatarFemale,
height:
80.0,
width:
80.0,
semanticsLabel:
'Female Logo')
],
),
SizedBox(
width: 10,
),
Column(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[ children: <Widget>[
AppText( Column(
item.firstName + mainAxisAlignment:
" " + MainAxisAlignment
item.lastName, .start,
fontSize: 2.0 * children:
SizeConfig item.genderDescription ==
.textMultiplier, "Male"
fontWeight: ? [
FontWeight SvgPicture.asset(
.bold, url + avatarMale,
backGroundcolor: height: 80.0,
Colors.white, width: 80.0,
), semanticsLabel: 'Male Logo')
SizedBox( ]
height: 8, : [
), SvgPicture.asset(
AppText( url + avatarFemale,
"File Number:" + height: 80.0,
item.patientId width: 80.0,
.toString(), semanticsLabel: 'Female Logo')
fontSize: 2.0 * ],
SizeConfig
.textMultiplier,
fontWeight:
FontWeight
.bold,
backGroundcolor:
Colors.white,
),
// SizedBox(
// height: 8,
// ),
AppText(
"Age:" +
item.age
.toString(),
fontSize: 2.0 *
SizeConfig
.textMultiplier,
fontWeight:
FontWeight
.bold,
backGroundcolor:
Colors.white,
), ),
SizedBox( SizedBox(
height: 8, width: 10,
), ),
SERVICES_PATIANT2[int Column(
.parse( crossAxisAlignment:
patientType)] == CrossAxisAlignment
"List_MyOutPatient" .start,
? Row( children: <
mainAxisAlignment: Widget>[
MainAxisAlignment AppText(
.spaceBetween, item.firstName +
children: < " " +
Widget>[ item.lastName,
Container( fontSize: 2.0 *
height: SizeConfig
20, .textMultiplier,
width: fontWeight:
80, FontWeight
decoration: .bold,
BoxDecoration( backGroundcolor:
borderRadius: Colors
BorderRadius.circular(50), .white,
color: ),
Hexcolor("#20A169"), SizedBox(
), height: 8,
child: ),
AppText( AppText(
item.startTime, "File Number:" +
color: item.patientId
Colors.white, .toString(),
fontSize: fontSize: 2.0 *
2 * SizeConfig.textMultiplier, SizeConfig
textAlign: .textMultiplier,
TextAlign.center, fontWeight:
fontWeight: FontWeight
FontWeight.bold, .bold,
), backGroundcolor:
), Colors
SizedBox( .white,
width: ),
60,
), // SizedBox(
Container( // height: 8,
child: // ),
AppText( AppText(
convertDateFormat2(item "Age:" +
.appointmentDate item.age
.toString()), .toString(),
fontSize: fontSize: 2.0 *
2.0 * SizeConfig.textMultiplier, SizeConfig
fontWeight: .textMultiplier,
FontWeight.bold, fontWeight:
), FontWeight
.bold,
backGroundcolor:
Colors
.white,
),
SizedBox(
height: 8,
),
SERVICES_PATIANT2[
int.parse(patientType)] ==
"List_MyOutPatient"
? Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: <
Widget>[
Container(
height:
20,
width:
80,
decoration:
BoxDecoration(
borderRadius: BorderRadius.circular(50),
color: Hexcolor("#20A169"),
),
child:
AppText(
item.startTime,
color: Colors.white,
fontSize: 2 * SizeConfig.textMultiplier,
textAlign: TextAlign.center,
fontWeight: FontWeight.bold,
),
),
SizedBox(
width:
60,
),
Container(
child:
AppText(
convertDateFormat2(item.appointmentDate.toString()),
fontSize: 2.0 * SizeConfig.textMultiplier,
fontWeight: FontWeight.bold,
),
)
],
) )
], : AppText(
) item.nationalityName,
: AppText( fontSize:
item.nationalityName, 2.5 *
fontSize: 2.5 * SizeConfig.textMultiplier,
SizeConfig ),
.textMultiplier, ],
), ),
// Divider(color: Colors.grey)
], ],
), ),
], ),
), // Divider(color: Colors.grey)
Divider(color: Colors.grey) ],
], ),
), ),
onTap: () {
Navigator.of(context)
.pushNamed(
PATIENTS_PROFILE,
arguments: {
"patient": item
});
},
), ),
onTap: () {
Navigator.of(context).pushNamed(
PATIENTS_PROFILE,
arguments: {
"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();
@ -93,25 +96,30 @@ class _VerifyAccountState extends State<VerifyAccount> {
MainAxisAlignment.spaceAround, MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Container( Container(
width: SizeConfig.realScreenWidth * 0.20, width: SizeConfig.realScreenWidth * 0.20,
child: TextFormField( child: TextFormField(
textInputAction: TextInputAction.next, textInputAction: TextInputAction.next,
style: buildTextStyle(), style: buildTextStyle(),
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'] = val;
verifyAccountFormValue['digit1'] = },
val; validator: validateCodeDigit,
}, onFieldSubmitted: (_) {
validator: validateCodeDigit, FocusScope.of(context)
onFieldSubmitted: (_) { .requestFocus(focusD2);
},
onChanged: (val) {
if (val.length == 1) {
FocusScope.of(context) FocusScope.of(context)
.requestFocus(focusD2); .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(
key: key, visible: selectedPatientType != 0 && selectedPatientType != 5,
patient: patient, child: PatientProfileButton(
route: PROGRESS_NOTE, key: key,
name: 'Progress Notes', patient: patient,
icon: 'heartbeat.png'), route: PROGRESS_NOTE,
name: 'Progress Notes',
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(
key: key, visible: selectedPatientType != 0 &&
patient: patient, selectedPatientType != 5 &&
route: PRESCRIPTIONS, selectedPatientType != 2,
name: 'Refer Patient', child: PatientProfileButton(
icon: 'note.png'), key: key,
PatientProfileButton( patient: patient,
key: key, route: PRESCRIPTIONS,
patient: patient, name: 'Refer Patient',
route: PATIENT_ORDERS, icon: 'note.png')),
name: 'Orders', Visibility(
icon: 'radiology-1.png'), visible: selectedPatientType != 0 && selectedPatientType != 5,
child: PatientProfileButton(
key: key,
patient: patient,
route: PATIENT_ORDERS,
name: 'Orders',
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