update
This commit is contained in:
@@ -20,8 +20,7 @@ class ProfessionalListBloc
|
||||
on<ProfessionalListFetch>(_onProfessionalListFetch);
|
||||
}
|
||||
|
||||
void _onProfessionalListFetch(
|
||||
ProfessionalListFetch event, Emitter<ProfessionalListState> emit) async {
|
||||
void _onProfessionalListFetch(ProfessionalListFetch event, Emitter<ProfessionalListState> emit) async {
|
||||
emit(ProfessionalListLoading());
|
||||
final users = await _userRepository.getUsersProfessionalActive();
|
||||
|
||||
|
||||
@@ -37,8 +37,7 @@ class _ConfigurationSupportScreenState
|
||||
}
|
||||
|
||||
Future<void> _sendWhatsapp(String? number) async {
|
||||
final _whatsappUrl =
|
||||
'https://api.whatsapp.com/send?phone=$number&text=Hola%21+soy+usuario+de+Prosapp+y+quisiera+conocer+mas+sobre+esta+app+%F0%9F%98%81';
|
||||
final _whatsappUrl = 'https://api.whatsapp.com/send?phone=$number&text=Hola%21+soy+usuario+de+Prosapp+y+quisiera+conocer+mas+sobre+esta+app+%F0%9F%98%81';
|
||||
if (!await launch(_whatsappUrl)) {
|
||||
ScaffoldMessenger.of(context).clearSnackBars();
|
||||
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
||||
|
||||
@@ -26,8 +26,7 @@ class _UserServiceListScreenState extends State<UserServiceListScreen> {
|
||||
|
||||
serviceBloc = Injector.appInstance.get<ServiceBloc>();
|
||||
|
||||
serviceBloc
|
||||
.add(LoadServicesForUser(FirebaseAuth.instance.currentUser!.uid));
|
||||
serviceBloc.add(LoadServicesForUser(FirebaseAuth.instance.currentUser!.uid));
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -44,7 +44,7 @@ class _ProfessionalScheduleScreenState
|
||||
),
|
||||
ScheduleItem(
|
||||
label: "Martes",
|
||||
schedule: schedules.thursday,
|
||||
schedule: schedules.tuesday,
|
||||
onChanged: (s) {
|
||||
setState(() => schedules = schedules.copyWith(thursday: s));
|
||||
},
|
||||
@@ -58,7 +58,7 @@ class _ProfessionalScheduleScreenState
|
||||
),
|
||||
ScheduleItem(
|
||||
label: "Jueves",
|
||||
schedule: schedules.tuesday,
|
||||
schedule: schedules.thursday,
|
||||
onChanged: (s) {
|
||||
setState(() => schedules = schedules.copyWith(tuesday: s));
|
||||
},
|
||||
|
||||
@@ -160,11 +160,10 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
||||
color: Colors.black54,
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
service.location ==
|
||||
ServiceLocationPreferences
|
||||
service.location == ServiceLocationPreferences
|
||||
.delivery
|
||||
? const Text(
|
||||
'Servicio a s domicilio.',
|
||||
'Servicio a domicilio.',
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 14),
|
||||
|
||||
@@ -262,8 +262,7 @@ class _UserMapScreenState extends State<UserMapScreen> {
|
||||
}));
|
||||
},
|
||||
onCameraMove: (position) {
|
||||
if (serviceLocationPreference !=
|
||||
ServiceLocationPreferences.office) {
|
||||
if (serviceLocationPreference != ServiceLocationPreferences.office) {
|
||||
coordenadas = position.target;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -5,8 +5,7 @@ class FirebaseServiceRepository {
|
||||
final serviceCollection = FirebaseFirestore.instance.collection('services');
|
||||
|
||||
Future<String> createService(ServiceEntity entity) async {
|
||||
DocumentReference<Map<String, dynamic>> docRef =
|
||||
await serviceCollection.add(entity.toDocument());
|
||||
DocumentReference<Map<String, dynamic>> docRef = await serviceCollection.add(entity.toDocument());
|
||||
return docRef.id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user