merge-requests/405/head
haroon amjad 3 years ago
parent 879ce4ee06
commit dfafb6b664

@ -23,9 +23,9 @@ class BaseService {
}
getUser() async {
if (user==null) {
// if (user==null) {
var userData = await sharedPref.getObject(USER_PROFILE);
if (userData != null) user = AuthenticatedUser.fromJson(userData);
}
// }
}
}

@ -177,9 +177,9 @@ class _NewCMCStepOnePageState extends State<NewCMCStepOnePage> {
widget.cMCInsertPresOrderRequestModel.patientERCMCInsertServicesList = [patientERCMCInsertServicesList];
await widget.model.getCustomerInfo();
if (widget.model.state == ViewState.ErrorLocal) {
Utils.showErrorToast();
} else {
// if (widget.model.state == ViewState.ErrorLocal) {
// Utils.showErrorToast();
// } else {
navigateTo(
context,
NewCMCStepTowPage(
@ -189,7 +189,7 @@ class _NewCMCStepOnePageState extends State<NewCMCStepOnePage> {
model: widget.model,
),
);
}
// }
}
},
),

@ -111,10 +111,14 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
void _onVisibleDaysChanged(DateTime first, DateTime last, CalendarFormat format) {
print('CALLBACK: _onVisibleDaysChanged');
print(first);
print(last);
}
void _onCalendarCreated(DateTime first, DateTime last, CalendarFormat format) {
print('CALLBACK: _onCalendarCreated');
print(first);
print(last);
}
@override
@ -274,8 +278,6 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
selectedButtonIndex = 0;
DocAvailableAppointments.selectedTime = dayEvents[selectedButtonIndex].isoTime;
// _scrollController.animateTo(0.0, duration: new Duration(seconds: 1), curve: Curves.ease);
});
}

@ -59,7 +59,7 @@ class AppMapState extends State<AppMap> {
Widget googleMap() {
return GoogleMap(
mapType: MapType.normal,
zoomControlsEnabled: false,
zoomControlsEnabled: true,
myLocationButtonEnabled: true,
myLocationEnabled: true,
initialCameraPosition: CameraPosition.fromMap(widget.initialCamera),

Loading…
Cancel
Save