diff --git a/lib/src/screens/service.dart b/lib/src/screens/service.dart index fa1e3d2..f24f42c 100644 --- a/lib/src/screens/service.dart +++ b/lib/src/screens/service.dart @@ -68,13 +68,11 @@ class _ServiceScreenState extends State { 'id': '1', 'status': 'done' }, - 'to': pro, + 'to': pro }, ), ); - print(pro); - print(response); response; } catch (e) { print('error al enviar notificacion $e'); @@ -364,6 +362,10 @@ class _ServiceScreenState extends State { professionalTarifa = profesional.tarifa ?? 0; professionalUbicacion = profesional.ubicacion; professionalAddress = _ubicationController.text; + if (profesional.token != '') { + professionalToken = profesional.token!; + print(professionalToken); + } if (ubicacion == 'sitio') { professionalAddress = profesional.realAddress; @@ -801,10 +803,11 @@ class _ServiceScreenState extends State { profesional.name.toString(); professionalId = profesional.id; - + print(profesional); if (profesional.token != '') { professionalToken = profesional.token!; + print(professionalToken); } professionalTarifa =