mejora de mensajes para usuario

This commit is contained in:
Felipe
2023-07-29 10:47:54 -05:00
parent 87696bf1d7
commit 3a46c6cee9
4 changed files with 136 additions and 79 deletions
+50 -38
View File
@@ -103,47 +103,59 @@ class _ProfessionScreenState extends State<ProfessionScreen> {
var professions = filteredProfessions!;
return SafeArea(
child: Scaffold(
appBar: PopAppbar(
onPressed: () {
Navigator.pop(context);
},
label: 'Seleccione su profesión',
),
body: Column(
children: [
Padding(
padding: const EdgeInsets.only(left: 10, right: 10, top: 10),
child: TextField(
controller: searchController,
decoration: const InputDecoration(
hintText: 'Buscar su profesión',
prefixIcon: Icon(Icons.assignment_ind_rounded),
child: Scaffold(
appBar: PopAppbar(
onPressed: () {
Navigator.pop(context);
},
label: 'Seleccione su profesión',
),
body: Column(
children: [
Container(
padding: const EdgeInsets.all(10),
child: const Text(
'Si no ves tu profesión, ¡contáctanos en la sección de soporte y la agregaremos para ti!',
style: TextStyle(
fontSize: 16.0,
color: Colors.blue,
),
textAlign: TextAlign.center,
),
),
),
Expanded(
child: ListView.builder(
itemCount: professions.length,
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: Text(
professions[index],
style: const TextStyle(
fontSize: 18.0,
color: Colors.black,
),
),
onTap: () {
updateProfession(professions[index]);
Navigator.pop(context, professions[index]);
},
);
},
Padding(
padding: const EdgeInsets.only(left: 10, right: 10, top: 0),
child: TextField(
controller: searchController,
decoration: const InputDecoration(
hintText: 'Buscar su profesión',
prefixIcon: Icon(Icons.assignment_ind_rounded),
),
),
),
),
],
Expanded(
child: ListView.builder(
itemCount: professions.length,
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: Text(
professions[index],
style: const TextStyle(
fontSize: 18.0,
color: Colors.black,
),
),
onTap: () {
updateProfession(professions[index]);
Navigator.pop(context, professions[index]);
},
);
},
),
),
],
),
),
));
);
}
}