antes de notificaciones

This commit is contained in:
Juan Felipe Duarte
2023-05-11 09:35:12 -05:00
parent 40ee4f2ab2
commit d5702207d2
14 changed files with 438 additions and 164 deletions
+10
View File
@@ -213,6 +213,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
Future<void> updateInfo() async {
final currentUser = _auth.currentUser;
final currentPhoneNumber = _auth.currentUser!.phoneNumber;
String newName = _nameController.text.trim();
String newEmail = _emailController.text.trim();
@@ -262,6 +263,15 @@ class _ProfileScreenState extends State<ProfileScreen> {
}
}
try {
await FirebaseFirestore.instance
.collection('users')
.doc(uid)
.update({'phoneNumber': currentPhoneNumber});
} catch (e) {
print('e');
}
try {
if (imagen_to_upload == null) {
return;