responsive de revision y cedula
This commit is contained in:
@@ -25,7 +25,6 @@ class _ProfessionalProfileWebScreenState
|
||||
extends State<ProfessionalProfileWebScreen> {
|
||||
final uid = AuthenticationRepository.instance.getCurrentUserUid();
|
||||
final FirebaseStorage storage = FirebaseStorage.instance;
|
||||
late final FirebaseAuth _auth;
|
||||
|
||||
// variables imagen
|
||||
String selectedImage = '';
|
||||
@@ -61,7 +60,6 @@ class _ProfessionalProfileWebScreenState
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_auth = FirebaseAuth.instance;
|
||||
if (_photo == '...') {
|
||||
AuthenticationRepository.instance.getPhoto(uid.toString()).then(
|
||||
(String s) => setState(() {
|
||||
@@ -131,27 +129,8 @@ class _ProfessionalProfileWebScreenState
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
print('ya no te $e');
|
||||
print('$e');
|
||||
}
|
||||
|
||||
print(imagesEspecializacionsBytes);
|
||||
// if (fileResult != null) {
|
||||
// setState(() {
|
||||
// try {
|
||||
// imagesEspecializacionsBytes =
|
||||
// fileResult.files.map((e) => File(e.path!)).toList();
|
||||
// } catch (e) {
|
||||
// print('error zd $e');
|
||||
// }
|
||||
|
||||
// // fileResult.files.forEach((element) {
|
||||
// // selectedEspecializacionImages.add(element.name);
|
||||
// // imagesEspecializacionsBytes.add(element.bytes);
|
||||
// // });
|
||||
|
||||
// print('array - $imagesEspecializacionsBytes');
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
Future<void> sendInfo() async {
|
||||
@@ -200,7 +179,6 @@ class _ProfessionalProfileWebScreenState
|
||||
// Navega a la siguiente pantalla
|
||||
Navigator.pushReplacementNamed(context, '/solicitudEnviada');
|
||||
} else {
|
||||
// Ocurrió un error al cargar las imágenes
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
@@ -341,7 +319,7 @@ class _ProfessionalProfileWebScreenState
|
||||
.child('users')
|
||||
.child(uid!)
|
||||
.child('especializaciones')
|
||||
.child('${DateTime.now().millisecondsSinceEpoch}.jpg');
|
||||
.child('e${DateTime.now().millisecondsSinceEpoch}.jpg');
|
||||
|
||||
final UploadTask uploadTask = ref.putData(imageBytes);
|
||||
|
||||
@@ -455,7 +433,10 @@ class _ProfessionalProfileWebScreenState
|
||||
body: SingleChildScrollView(
|
||||
child: Center(
|
||||
child: _isLoading
|
||||
? const CircularProgressIndicator()
|
||||
? const Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 30),
|
||||
child: CircularProgressIndicator(),
|
||||
)
|
||||
: Column(
|
||||
children: [
|
||||
Container(
|
||||
|
||||
Reference in New Issue
Block a user