merge-requests/427/head
haroon amjad 5 years ago
parent 2690bddcac
commit 69af6799c4

@ -1,4 +1,5 @@
import 'package:diplomaticquarterapp/config/config.dart'; import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/model/contactus/get_patientI_cprojects.dart'; import 'package:diplomaticquarterapp/core/model/contactus/get_patientI_cprojects.dart';
import '../base_service.dart'; import '../base_service.dart';
@ -12,6 +13,9 @@ class LiveChatService extends BaseService {
Future getAllLiveChatOrders() async { Future getAllLiveChatOrders() async {
hasError = false; hasError = false;
body['List_PatientICProjects'] = false; body['List_PatientICProjects'] = false;
body['Latitude'] = await this.sharedPref.getDouble(USER_LAT);
body['Longitude'] = await this.sharedPref.getDouble(USER_LONG);
await baseAppClient.post(GET_LIVECHAT_REQUEST, await baseAppClient.post(GET_LIVECHAT_REQUEST,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
LivechatModelList.clear(); LivechatModelList.clear();

@ -45,7 +45,6 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
children: [ children: [
Text( Text(
TranslationBase.of(context).instructions, TranslationBase.of(context).instructions,
textAlign: TextAlign.center,
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 23 / 16), style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 23 / 16),
), ),
SizedBox(height: 20), SizedBox(height: 20),

@ -45,7 +45,7 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
imagesInfo: imagesInfo, imagesInfo: imagesInfo,
title: TranslationBase.of(context).liveChat, title: TranslationBase.of(context).liveChat,
description: TranslationBase.of(context).infoChat, description: TranslationBase.of(context).infoChat,
appBarTitle: TranslationBase.of(context).service, appBarTitle: TranslationBase.of(context).liveChat,
showNewAppBar: true, showNewAppBar: true,
showNewAppBarTitle: true, showNewAppBarTitle: true,
backgroundColor: CustomColors.appBackgroudGrey2Color, backgroundColor: CustomColors.appBackgroudGrey2Color,

@ -161,7 +161,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
}); });
}, },
child: DoctorCard( child: DoctorCard(
onTap: () {}, onTap: null,
isInOutPatient: appointHistory.isInOutPatient, isInOutPatient: appointHistory.isInOutPatient,
name: appointHistory.doctorTitle + " " + appointHistory.doctorNameObj, name: appointHistory.doctorTitle + " " + appointHistory.doctorNameObj,
// billNo: _appointmentResult.invoiceNo, // billNo: _appointmentResult.invoiceNo,
@ -187,7 +187,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
}); });
}, },
child: DoctorCard( child: DoctorCard(
onTap: () {}, onTap: null,
isInOutPatient: model.appointHistoryList[index].isInOutPatient, isInOutPatient: model.appointHistoryList[index].isInOutPatient,
name: model.appointHistoryList[index].doctorTitle + " " + model.appointHistoryList[index].doctorNameObj, name: model.appointHistoryList[index].doctorTitle + " " + model.appointHistoryList[index].doctorNameObj,
profileUrl: model.appointHistoryList[index].doctorImageURL, profileUrl: model.appointHistoryList[index].doctorImageURL,

@ -150,7 +150,7 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
height: 48, height: 48,
alignment: Alignment.bottomRight, alignment: Alignment.bottomRight,
child: Icon( child: Icon(
Icons.visibility_sharp, Icons.arrow_forward,
color: Color(0xff2E303A), color: Color(0xff2E303A),
), ),
) )

@ -24,7 +24,7 @@ class ActiveMedicationsPage extends StatelessWidget {
isShowDecPage: true, isShowDecPage: true,
baseViewModel: model, baseViewModel: model,
appBarTitle: TranslationBase.of(context).activeMedications, appBarTitle: TranslationBase.of(context).activeMedications,
body: Container( body: model.activePrescriptionReport.length > 0 ? Container(
child: ListView.builder( child: ListView.builder(
itemCount: model.activePrescriptionReport.length, itemCount: model.activePrescriptionReport.length,
itemBuilder: (context, index) => Container( itemBuilder: (context, index) => Container(
@ -197,7 +197,7 @@ class ActiveMedicationsPage extends StatelessWidget {
), ),
), ),
), ),
), ) : getNoDataWidget(context),
), ),
); );
} }

@ -53,7 +53,7 @@ class _MyVaccinesState extends State<MyVaccines> {
separatorBuilder: (context, index) => SizedBox(height: 14), separatorBuilder: (context, index) => SizedBox(height: 14),
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return DoctorCard( return DoctorCard(
onTap: () {}, onTap: null,
isInOutPatient: true, isInOutPatient: true,
isShowInOutPatient: false, isShowInOutPatient: false,
name: TranslationBase.of(context).dr.toString() + " " + model.vaccineList[index].doctorName, name: TranslationBase.of(context).dr.toString() + " " + model.vaccineList[index].doctorName,

@ -216,10 +216,10 @@ class DoctorCard extends StatelessWidget {
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
), ),
) )
: Icon( : onTap != null ? Icon(
Icons.arrow_forward, Icons.arrow_forward,
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
), ) : SizedBox(),
), ),
), ),
], ],

Loading…
Cancel
Save