This commit is contained in:
Juan Felipe Duarte
2023-04-12 11:55:05 -05:00
parent a5f4db5836
commit c72f346db7
+40 -39
View File
@@ -551,58 +551,59 @@ class ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
if (profesion != null) { if (profesion != null) {
setState(() { setState(() {
_profession = profesion as String; _profession = profesion;
}); });
} }
}, },
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: Icon(Icons.assignment_ind_rounded), prefixIcon:
suffixIcon: Icon(Icons.arrow_drop_down), const Icon(Icons.assignment_ind_rounded),
suffixIcon: const Icon(Icons.arrow_drop_down),
hintStyle: profession == '' hintStyle: profession == ''
? TextStyle() ? const TextStyle()
: TextStyle(color: Colors.black87), : const TextStyle(color: Colors.black87),
hintText: profession == '' hintText: profession == ''
? 'Profesión (Obligatorio)' ? 'Profesión (Obligatorio)'
: '$profession'), : profession),
), ),
SizedBox(height: _space), SizedBox(height: _space),
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
_showChoiceDialogCertificado(context); _showChoiceDialogCertificado(context);
}, },
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFD6F4FF),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: const Size(250, 50),
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( const Text(
'Certificado profesional', 'Certificado profesional',
style: TextStyle( style: TextStyle(
color: Color(0xFF2BA4EC), color: Color(0xFF2BA4EC),
fontSize: 17, fontSize: 17,
), ),
), ),
SizedBox(width: 15), const SizedBox(width: 15),
Icon( Icon(
image_certificado != null image_certificado != null
? Icons.check ? Icons.check
: Icons.file_upload_outlined, : Icons.file_upload_outlined,
color: Color(0xFF2BA4EC), color: const Color(0xFF2BA4EC),
size: 30, size: 30,
), ),
], ],
), ),
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFFD6F4FF),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(250, 50),
),
), ),
SizedBox(height: _space), SizedBox(height: _space),
TextFormField( TextFormField(
controller: _especializacionController, controller: _especializacionController,
decoration: InputDecoration( decoration: const InputDecoration(
prefixIcon: Icon(Icons.assignment_ind_rounded), prefixIcon: Icon(Icons.assignment_ind_rounded),
hintText: 'Especialización'), hintText: 'Especialización'),
), ),
@@ -615,48 +616,56 @@ class ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
images.map((e) => File(e!.path)).toList(); images.map((e) => File(e!.path)).toList();
}); });
}, },
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFD6F4FF),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: const Size(250, 50),
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( const Text(
'Especialización', 'Especialización',
style: TextStyle( style: TextStyle(
color: Color(0xFF2BA4EC), color: Color(0xFF2BA4EC),
fontSize: 17, fontSize: 17,
), ),
), ),
SizedBox(width: 15), const SizedBox(width: 15),
Icon( Icon(
images_especializacion.isEmpty images_especializacion.isEmpty
? Icons.file_upload_outlined ? Icons.file_upload_outlined
: Icons.check, : Icons.check,
color: Color(0xFF2BA4EC), color: const Color(0xFF2BA4EC),
size: 30, size: 30,
), ),
], ],
), ),
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFFD6F4FF),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(250, 50),
),
), ),
], ],
)), )),
), ),
Container( Container(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
margin: EdgeInsets.only(top: 120, right: 70, left: 70), margin: const EdgeInsets.only(top: 120, right: 70, left: 70),
child: ElevatedButton( child: ElevatedButton(
onPressed: () { onPressed: () {
sendInfo(); sendInfo();
}, },
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: const Size(250, 50),
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: const [
Text( Text(
'Enviar información', 'Enviar información',
style: TextStyle( style: TextStyle(
@@ -673,14 +682,6 @@ class ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
), ),
], ],
), ),
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(250, 50),
),
)), )),
], ],
), ),