This commit is contained in:
Juan Felipe Duarte
2023-04-09 08:59:13 -05:00
parent 598f2c114b
commit 5d4d9fa779
8 changed files with 172 additions and 47 deletions
+12 -19
View File
@@ -7,7 +7,6 @@ import 'dart:io';
import 'package:prosappco/src/authentication/authentication_repository.dart';
import 'package:prosappco/src/controllers/add_name_email_city.dart';
import 'package:prosappco/src/services/select_image_profile.dart';
import 'package:prosappco/src/services/upload_image.dart';
import '../components/photo_view.dart';
@@ -273,15 +272,6 @@ class _ProfileScreenState extends State<ProfileScreen> {
}
}
Widget prueba() {
try {
return ReferencePhoto(ref: null);
} catch (e) {
print('errrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrror $e');
return Center();
}
}
Future<void> _showChoiceDialog(BuildContext context) async {
return showDialog(
context: context,
@@ -336,10 +326,10 @@ class _ProfileScreenState extends State<ProfileScreen> {
resizeToAvoidBottomInset: false,
appBar: AppBar(
backgroundColor: Colors.white,
iconTheme: IconThemeData(
iconTheme: const IconThemeData(
color: Colors.black,
),
title: Text(
title: const Text(
'Perfil',
style: TextStyle(
color: Colors.black,
@@ -359,18 +349,19 @@ class _ProfileScreenState extends State<ProfileScreen> {
onTap: () {
Scaffold.of(context).openEndDrawer();
},
title: Text('${user?.displayName}',
style: TextStyle(fontWeight: FontWeight.bold)),
title: Text(user?.displayName ?? '',
style:
const TextStyle(fontWeight: FontWeight.bold)),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'${user?.phoneNumber}',
style: TextStyle(fontSize: 12),
user?.phoneNumber ?? '',
style: const TextStyle(fontSize: 12),
),
Text(
'$city',
style: TextStyle(fontSize: 12),
city,
style: const TextStyle(fontSize: 12),
),
],
),
@@ -516,7 +507,9 @@ class _ProfileScreenState extends State<ProfileScreen> {
),
SizedBox(width: 5),
ElevatedButton(
onPressed: () {},
onPressed: () {
Navigator.pushNamed(context, '/profesionalRevision');
},
child: Text(
'Modo profesional',
style: TextStyle(