avisa si el numero de celular no esta actualizado
This commit is contained in:
@@ -310,33 +310,6 @@ class _ProfessionalProfileWebScreenState
|
||||
}
|
||||
}
|
||||
|
||||
// Future<List<String>> uploadEspecializaciones(List<Uint8List> images) async {
|
||||
// List<String> photoPaths = [];
|
||||
|
||||
// for (Uint8List imageBytes in images) {
|
||||
// Reference ref = storage
|
||||
// .ref()
|
||||
// .child('users')
|
||||
// .child(uid!)
|
||||
// .child('especializaciones')
|
||||
// .child('e${DateTime.now().millisecondsSinceEpoch}.jpg');
|
||||
|
||||
// final UploadTask uploadTask = ref.putData(imageBytes);
|
||||
|
||||
// final TaskSnapshot snapshot = await uploadTask.whenComplete(() => true);
|
||||
|
||||
// if (snapshot.state == TaskState.success) {
|
||||
// photoPaths.add(ref.fullPath);
|
||||
// } else {
|
||||
// await updateImagesEspecializaciones(photoPaths);
|
||||
// return [];
|
||||
// }
|
||||
// }
|
||||
|
||||
// await updateImagesEspecializaciones(photoPaths);
|
||||
// return photoPaths;
|
||||
// }
|
||||
|
||||
Future<List<String>> uploadEspecializaciones(List<Uint8List> files) async {
|
||||
List<String> filePaths = [];
|
||||
|
||||
@@ -423,24 +396,6 @@ class _ProfessionalProfileWebScreenState
|
||||
}
|
||||
}
|
||||
|
||||
// Future<void> updateImagesEspecializaciones(List<String> photoPaths) async {
|
||||
// try {
|
||||
// final userRef = FirebaseFirestore.instance.collection('users').doc(uid);
|
||||
// final userSnapshot = await userRef.get();
|
||||
|
||||
// if (userSnapshot.exists) {
|
||||
// await userRef.update({'imgEspecializaciones': photoPaths});
|
||||
// print('¡Imágenes de especializaciones actualizadas correctamente!');
|
||||
// } else {
|
||||
// await userRef.set({'imgEspecializaciones': photoPaths});
|
||||
// print('¡Imágenes de especializaciones agregadas correctamente!');
|
||||
// }
|
||||
// } catch (e) {
|
||||
// print(
|
||||
// 'Error al agregar o actualizar las imágenes de especializaciones: $e');
|
||||
// }
|
||||
// }
|
||||
|
||||
Future<void> updateFilesEspecializaciones(List<String> filePaths) async {
|
||||
try {
|
||||
final userRef = FirebaseFirestore.instance.collection('users').doc(uid);
|
||||
|
||||
Reference in New Issue
Block a user