update lat, lng 0 y horarios
This commit is contained in:
@@ -25,8 +25,7 @@ class ProfessionalCalendarScreen extends StatefulWidget {
|
||||
_ProfessionalCalendarScreenState();
|
||||
}
|
||||
|
||||
class _ProfessionalCalendarScreenState
|
||||
extends State<ProfessionalCalendarScreen> {
|
||||
class _ProfessionalCalendarScreenState extends State<ProfessionalCalendarScreen> {
|
||||
final settingRepository = Injector.appInstance.get<SettingRepository>();
|
||||
final serviceRepository =
|
||||
Injector.appInstance.get<FirebaseServiceRepository>();
|
||||
@@ -238,8 +237,7 @@ class _ProfessionalCalendarScreenState
|
||||
return false;
|
||||
}
|
||||
|
||||
List<Widget> rangesItemList(List<TimeOfDay> ranges,
|
||||
List<ServiceEntity>? events, DateTime selectedDay, BuildContext context) {
|
||||
List<Widget> rangesItemList(List<TimeOfDay> ranges, List<ServiceEntity>? events, DateTime selectedDay, BuildContext context) {
|
||||
return ranges.map((time) {
|
||||
if (_isHora1Ocupada(time, events, selectedDay)) {
|
||||
return Card(
|
||||
|
||||
@@ -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