This commit is contained in:
lizandrogd
2023-08-21 23:18:13 -05:00
parent 74e857bab3
commit b8905e936a
+7 -4
View File
@@ -68,13 +68,11 @@ class _ServiceScreenState extends State<ServiceScreen> {
'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<ServiceScreen> {
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<ServiceScreen> {
profesional.name.toString();
professionalId = profesional.id;
print(profesional);
if (profesional.token != '') {
professionalToken =
profesional.token!;
print(professionalToken);
}
professionalTarifa =