responsive de revision y cedula
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl_phone_field/intl_phone_field.dart';
|
||||
import 'package:prosappco/src/components/bottom_sheet.dart';
|
||||
@@ -59,6 +60,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
controller: controller.phoneNo,
|
||||
initialCountryCode: 'CO',
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||
onChanged: (phoneNo) {
|
||||
completePhoneNumber = phoneNo.completeNumber;
|
||||
},
|
||||
@@ -167,6 +169,9 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
controller: controller.phoneNo,
|
||||
initialCountryCode: 'CO',
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.digitsOnly
|
||||
],
|
||||
onChanged: (phoneNo) {
|
||||
completePhoneNumber = phoneNo.completeNumber;
|
||||
},
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -27,9 +27,9 @@ class _ProfessionalRevisionScreenState
|
||||
padding: const EdgeInsets.only(top: 40),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: const [
|
||||
children: [
|
||||
Icon(
|
||||
Icons.access_time,
|
||||
color: Color(0xFF2BA4EC),
|
||||
@@ -62,34 +62,27 @@ class _ProfessionalRevisionScreenState
|
||||
),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 15, horizontal: 25),
|
||||
child: Wrap(
|
||||
child: const Wrap(
|
||||
alignment: WrapAlignment.start, // Centra el contenido
|
||||
children: [
|
||||
Row(
|
||||
children: const [
|
||||
Icon(
|
||||
Icons.info_outline,
|
||||
size: 20,
|
||||
),
|
||||
SizedBox(width: 5),
|
||||
Text(
|
||||
'Su información, esta en revisión, ',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
SizedBox(
|
||||
width: 350,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.info_outline,
|
||||
size: 20,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const Text(
|
||||
'una vez aprobada podrá acceder, ',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
),
|
||||
const Text(
|
||||
'al perfil profesional.',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
SizedBox(width: 15),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Su información, esta en revisión, una vez aprobada podrá acceder, 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:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:prosappco/src/components/pop_appbar.dart';
|
||||
import 'package:prosappco/src/screens/profession.dart';
|
||||
import 'package:prosappco/src/screens/service.dart';
|
||||
|
||||
class ServiceTypeScreen extends StatefulWidget {
|
||||
const ServiceTypeScreen({super.key});
|
||||
|
||||
Reference in New Issue
Block a user