update lat, lng 0 y horarios
This commit is contained in:
@@ -112,6 +112,9 @@ class _ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
|
||||
_addressController.text = proInfo.address;
|
||||
_aditionalAddressController.text = proInfo.aditionalAddress;
|
||||
|
||||
_longitudeController = proInfo.longitude;
|
||||
_latitudeController = proInfo.latitude;
|
||||
|
||||
isNequiActive = proInfo.paymentMethods.nequi;
|
||||
isDatafonoActive = proInfo.paymentMethods.datafono;
|
||||
isTransferActive = proInfo.paymentMethods.transferencia;
|
||||
@@ -606,22 +609,22 @@ class _ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
|
||||
|
||||
String timeList(ScheduleEntity? schedule, BuildContext context) {
|
||||
if (schedule == null) {
|
||||
return 'N/A';
|
||||
return 'No hay horarios';
|
||||
}
|
||||
if (!schedule.enabled) {
|
||||
return 'N/A';
|
||||
return 'No hay horarios';
|
||||
}
|
||||
if (schedule.range1Hour1 == null || schedule.range2Hour2 == null) {
|
||||
return 'N/A';
|
||||
return 'No hay horarios';
|
||||
}
|
||||
if (schedule.continuousDay) {
|
||||
return '${ScheduleEntity.getFormatTime(schedule.range1Hour1)} - ${ScheduleEntity.getFormatTime(schedule.range2Hour2)}';
|
||||
return '${ScheduleEntity.getFormatTime(schedule.range1Hour1)} a ${ScheduleEntity.getFormatTime(schedule.range2Hour2)}';
|
||||
} else {
|
||||
if (schedule.range1Hour2 == null || schedule.range2Hour1 == null) {
|
||||
return 'N/A';
|
||||
return 'No hay horarios';
|
||||
}
|
||||
|
||||
return '${ScheduleEntity.getFormatTime(schedule.range1Hour1)} - ${ScheduleEntity.getFormatTime(schedule.range1Hour2)}; ${ScheduleEntity.getFormatTime(schedule.range2Hour1)} - ${ScheduleEntity.getFormatTime(schedule.range2Hour2)}';
|
||||
return '${ScheduleEntity.getFormatTime(schedule.range1Hour1)} a ${ScheduleEntity.getFormatTime(schedule.range1Hour2)} - ${ScheduleEntity.getFormatTime(schedule.range2Hour1)} a ${ScheduleEntity.getFormatTime(schedule.range2Hour2)}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user