responsive de revision y cedula
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:intl_phone_field/intl_phone_field.dart';
|
import 'package:intl_phone_field/intl_phone_field.dart';
|
||||||
import 'package:prosappco/src/components/bottom_sheet.dart';
|
import 'package:prosappco/src/components/bottom_sheet.dart';
|
||||||
@@ -59,6 +60,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
controller: controller.phoneNo,
|
controller: controller.phoneNo,
|
||||||
initialCountryCode: 'CO',
|
initialCountryCode: 'CO',
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
|
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||||
onChanged: (phoneNo) {
|
onChanged: (phoneNo) {
|
||||||
completePhoneNumber = phoneNo.completeNumber;
|
completePhoneNumber = phoneNo.completeNumber;
|
||||||
},
|
},
|
||||||
@@ -167,6 +169,9 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
controller: controller.phoneNo,
|
controller: controller.phoneNo,
|
||||||
initialCountryCode: 'CO',
|
initialCountryCode: 'CO',
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
|
inputFormatters: [
|
||||||
|
FilteringTextInputFormatter.digitsOnly
|
||||||
|
],
|
||||||
onChanged: (phoneNo) {
|
onChanged: (phoneNo) {
|
||||||
completePhoneNumber = phoneNo.completeNumber;
|
completePhoneNumber = phoneNo.completeNumber;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ class _ProfessionalProfileWebScreenState
|
|||||||
extends State<ProfessionalProfileWebScreen> {
|
extends State<ProfessionalProfileWebScreen> {
|
||||||
final uid = AuthenticationRepository.instance.getCurrentUserUid();
|
final uid = AuthenticationRepository.instance.getCurrentUserUid();
|
||||||
final FirebaseStorage storage = FirebaseStorage.instance;
|
final FirebaseStorage storage = FirebaseStorage.instance;
|
||||||
late final FirebaseAuth _auth;
|
|
||||||
|
|
||||||
// variables imagen
|
// variables imagen
|
||||||
String selectedImage = '';
|
String selectedImage = '';
|
||||||
@@ -61,7 +60,6 @@ class _ProfessionalProfileWebScreenState
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_auth = FirebaseAuth.instance;
|
|
||||||
if (_photo == '...') {
|
if (_photo == '...') {
|
||||||
AuthenticationRepository.instance.getPhoto(uid.toString()).then(
|
AuthenticationRepository.instance.getPhoto(uid.toString()).then(
|
||||||
(String s) => setState(() {
|
(String s) => setState(() {
|
||||||
@@ -131,27 +129,8 @@ class _ProfessionalProfileWebScreenState
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} 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 {
|
Future<void> sendInfo() async {
|
||||||
@@ -200,7 +179,6 @@ class _ProfessionalProfileWebScreenState
|
|||||||
// Navega a la siguiente pantalla
|
// Navega a la siguiente pantalla
|
||||||
Navigator.pushReplacementNamed(context, '/solicitudEnviada');
|
Navigator.pushReplacementNamed(context, '/solicitudEnviada');
|
||||||
} else {
|
} else {
|
||||||
// Ocurrió un error al cargar las imágenes
|
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
@@ -341,7 +319,7 @@ class _ProfessionalProfileWebScreenState
|
|||||||
.child('users')
|
.child('users')
|
||||||
.child(uid!)
|
.child(uid!)
|
||||||
.child('especializaciones')
|
.child('especializaciones')
|
||||||
.child('${DateTime.now().millisecondsSinceEpoch}.jpg');
|
.child('e${DateTime.now().millisecondsSinceEpoch}.jpg');
|
||||||
|
|
||||||
final UploadTask uploadTask = ref.putData(imageBytes);
|
final UploadTask uploadTask = ref.putData(imageBytes);
|
||||||
|
|
||||||
@@ -455,7 +433,10 @@ class _ProfessionalProfileWebScreenState
|
|||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _isLoading
|
child: _isLoading
|
||||||
? const CircularProgressIndicator()
|
? const Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 30),
|
||||||
|
child: CircularProgressIndicator(),
|
||||||
|
)
|
||||||
: Column(
|
: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ class _ProfessionalRevisionScreenState
|
|||||||
padding: const EdgeInsets.only(top: 40),
|
padding: const EdgeInsets.only(top: 40),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
const Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
Icons.access_time,
|
Icons.access_time,
|
||||||
color: Color(0xFF2BA4EC),
|
color: Color(0xFF2BA4EC),
|
||||||
@@ -62,35 +62,28 @@ class _ProfessionalRevisionScreenState
|
|||||||
),
|
),
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(vertical: 15, horizontal: 25),
|
const EdgeInsets.symmetric(vertical: 15, horizontal: 25),
|
||||||
child: Wrap(
|
child: const Wrap(
|
||||||
alignment: WrapAlignment.start, // Centra el contenido
|
alignment: WrapAlignment.start, // Centra el contenido
|
||||||
children: [
|
children: [
|
||||||
Row(
|
SizedBox(
|
||||||
children: const [
|
width: 350,
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
Icons.info_outline,
|
Icons.info_outline,
|
||||||
size: 20,
|
size: 20,
|
||||||
),
|
),
|
||||||
SizedBox(width: 5),
|
SizedBox(width: 15),
|
||||||
Text(
|
Expanded(
|
||||||
'Su información, esta en revisión, ',
|
child: Text(
|
||||||
|
'Su información, esta en revisión, una vez aprobada podrá acceder, al perfil profesional.',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const Text(
|
|
||||||
'una vez aprobada podrá acceder, ',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const Text(
|
|
||||||
'al perfil profesional.',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
|
||||||
import 'package:diacritic/diacritic.dart';
|
import 'package:diacritic/diacritic.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:prosappco/src/components/pop_appbar.dart';
|
import 'package:prosappco/src/components/pop_appbar.dart';
|
||||||
import 'package:prosappco/src/screens/profession.dart';
|
import 'package:prosappco/src/screens/profession.dart';
|
||||||
import 'package:prosappco/src/screens/service.dart';
|
|
||||||
|
|
||||||
class ServiceTypeScreen extends StatefulWidget {
|
class ServiceTypeScreen extends StatefulWidget {
|
||||||
const ServiceTypeScreen({super.key});
|
const ServiceTypeScreen({super.key});
|
||||||
|
|||||||
Reference in New Issue
Block a user