From 408744fcc64d416222f4a45a827c43674062ef95 Mon Sep 17 00:00:00 2001 From: Felipe Date: Fri, 2 Aug 2024 18:46:17 -0500 Subject: [PATCH] update --- lib/blocs/professional_list_bloc/professional_list_bloc.dart | 3 +-- lib/screens/configuration/configuration_support_screen.dart | 3 +-- lib/screens/lists/user_service_list_screen.dart | 3 +-- lib/screens/professional/professional_schedule_screen.dart | 4 ++-- lib/screens/service/service_screen.dart | 5 ++--- lib/screens/user/user_map_screen.dart | 3 +-- .../lib/src/repositories/firebase_service_repository.dart | 3 +-- 7 files changed, 9 insertions(+), 15 deletions(-) diff --git a/lib/blocs/professional_list_bloc/professional_list_bloc.dart b/lib/blocs/professional_list_bloc/professional_list_bloc.dart index 8eb9bea..fd3e3d5 100644 --- a/lib/blocs/professional_list_bloc/professional_list_bloc.dart +++ b/lib/blocs/professional_list_bloc/professional_list_bloc.dart @@ -20,8 +20,7 @@ class ProfessionalListBloc on(_onProfessionalListFetch); } - void _onProfessionalListFetch( - ProfessionalListFetch event, Emitter emit) async { + void _onProfessionalListFetch(ProfessionalListFetch event, Emitter emit) async { emit(ProfessionalListLoading()); final users = await _userRepository.getUsersProfessionalActive(); diff --git a/lib/screens/configuration/configuration_support_screen.dart b/lib/screens/configuration/configuration_support_screen.dart index 76d83e5..646e9f7 100644 --- a/lib/screens/configuration/configuration_support_screen.dart +++ b/lib/screens/configuration/configuration_support_screen.dart @@ -37,8 +37,7 @@ class _ConfigurationSupportScreenState } Future _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( diff --git a/lib/screens/lists/user_service_list_screen.dart b/lib/screens/lists/user_service_list_screen.dart index fc30ba1..be262ef 100644 --- a/lib/screens/lists/user_service_list_screen.dart +++ b/lib/screens/lists/user_service_list_screen.dart @@ -26,8 +26,7 @@ class _UserServiceListScreenState extends State { serviceBloc = Injector.appInstance.get(); - serviceBloc - .add(LoadServicesForUser(FirebaseAuth.instance.currentUser!.uid)); + serviceBloc.add(LoadServicesForUser(FirebaseAuth.instance.currentUser!.uid)); } @override diff --git a/lib/screens/professional/professional_schedule_screen.dart b/lib/screens/professional/professional_schedule_screen.dart index 6ebad56..1b048d5 100644 --- a/lib/screens/professional/professional_schedule_screen.dart +++ b/lib/screens/professional/professional_schedule_screen.dart @@ -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)); }, diff --git a/lib/screens/service/service_screen.dart b/lib/screens/service/service_screen.dart index 05e1d5f..9d1f2ca 100644 --- a/lib/screens/service/service_screen.dart +++ b/lib/screens/service/service_screen.dart @@ -160,11 +160,10 @@ class _ServiceScreenState extends State { 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), diff --git a/lib/screens/user/user_map_screen.dart b/lib/screens/user/user_map_screen.dart index 3354b8e..93dc93d 100644 --- a/lib/screens/user/user_map_screen.dart +++ b/lib/screens/user/user_map_screen.dart @@ -262,8 +262,7 @@ class _UserMapScreenState extends State { })); }, onCameraMove: (position) { - if (serviceLocationPreference != - ServiceLocationPreferences.office) { + if (serviceLocationPreference != ServiceLocationPreferences.office) { coordenadas = position.target; } }, diff --git a/packages/service_repository/lib/src/repositories/firebase_service_repository.dart b/packages/service_repository/lib/src/repositories/firebase_service_repository.dart index d21947a..20bc662 100644 --- a/packages/service_repository/lib/src/repositories/firebase_service_repository.dart +++ b/packages/service_repository/lib/src/repositories/firebase_service_repository.dart @@ -5,8 +5,7 @@ class FirebaseServiceRepository { final serviceCollection = FirebaseFirestore.instance.collection('services'); Future createService(ServiceEntity entity) async { - DocumentReference> docRef = - await serviceCollection.add(entity.toDocument()); + DocumentReference> docRef = await serviceCollection.add(entity.toDocument()); return docRef.id; }