This commit is contained in:
Felipe
2023-08-17 12:33:30 -05:00
parent 2dd4fc3e7a
commit 08fd5e5dba
5 changed files with 28 additions and 10 deletions
+1
View File
@@ -1,6 +1,7 @@
{ {
"project_info": { "project_info": {
"project_number": "245204384533", "project_number": "245204384533",
"firebase_url": "https://prosapp-5747a-default-rtdb.firebaseio.com",
"project_id": "prosapp-5747a", "project_id": "prosapp-5747a",
"storage_bucket": "prosapp-5747a.appspot.com" "storage_bucket": "prosapp-5747a.appspot.com"
}, },
@@ -33,7 +33,7 @@ class NewPhoneController extends GetxController {
(FirebaseAuthException e) { (FirebaseAuthException e) {
Get.snackbar( Get.snackbar(
'Ingresa un numero de telefono valido', 'Ingresa un numero de telefono valido',
'verifica que el campo tenga todos los caracteres o intentalo de nuevo', 'verifica que el campo tenga todos los caracteres o intentalo de nuevo ${e}',
snackPosition: SnackPosition.BOTTOM, snackPosition: SnackPosition.BOTTOM,
); );
}; };
+20 -8
View File
@@ -4,6 +4,7 @@ import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:prosappco/src/authentication/authentication_repository.dart'; import 'package:prosappco/src/authentication/authentication_repository.dart';
import 'package:prosappco/src/components/pop_appbar.dart'; import 'package:prosappco/src/components/pop_appbar.dart';
import 'package:prosappco/src/screens/support.dart';
final CollectionReference professionsCollection = final CollectionReference professionsCollection =
FirebaseFirestore.instance.collection('professions'); FirebaseFirestore.instance.collection('professions');
@@ -112,15 +113,26 @@ class _ProfessionScreenState extends State<ProfessionScreen> {
), ),
body: Column( body: Column(
children: [ children: [
Container( GestureDetector(
padding: const EdgeInsets.all(10), onTap: () {
child: const Text( // Aquí puedes agregar la navegación a la vista deseada
'Si no ves tu profesión, ¡contáctanos en la sección de soporte y la agregaremos para ti!', Navigator.push(
style: TextStyle( context,
fontSize: 16.0, MaterialPageRoute(
color: Colors.blue, builder: (context) =>
const SupportScreen()), // Reemplaza "OtraVista()" con el nombre de tu vista
);
},
child: Container(
padding: const EdgeInsets.all(10),
child: const Text(
'Si tu profesión no aparece, haz clic aquí',
style: TextStyle(
fontSize: 16.0,
color: Colors.blue,
),
textAlign: TextAlign.center,
), ),
textAlign: TextAlign.center,
), ),
), ),
Padding( Padding(
-1
View File
@@ -828,7 +828,6 @@ class _ServiceScreenState extends State<ServiceScreen> {
), ),
const SizedBox(height: 15), const SizedBox(height: 15),
TextFormField( TextFormField(
readOnly: true,
controller: _locationController, controller: _locationController,
decoration: const InputDecoration( decoration: const InputDecoration(
prefixIcon: Icon(Icons.near_me), prefixIcon: Icon(Icons.near_me),
+6
View File
@@ -0,0 +1,6 @@
{
"name": "prosappco",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}