diff --git a/lib/src/screens/professional_profile.dart b/lib/src/screens/professional_profile.dart index 2af0f76..aa0740f 100644 --- a/lib/src/screens/professional_profile.dart +++ b/lib/src/screens/professional_profile.dart @@ -551,58 +551,59 @@ class ProfessionalProfileScreenState extends State { if (profesion != null) { setState(() { - _profession = profesion as String; + _profession = profesion; }); } }, decoration: InputDecoration( - prefixIcon: Icon(Icons.assignment_ind_rounded), - suffixIcon: Icon(Icons.arrow_drop_down), + prefixIcon: + const Icon(Icons.assignment_ind_rounded), + suffixIcon: const Icon(Icons.arrow_drop_down), hintStyle: profession == '' - ? TextStyle() - : TextStyle(color: Colors.black87), + ? const TextStyle() + : const TextStyle(color: Colors.black87), hintText: profession == '' ? 'Profesión (Obligatorio)' - : '$profession'), + : profession), ), SizedBox(height: _space), ElevatedButton( onPressed: () { _showChoiceDialogCertificado(context); }, + style: ElevatedButton.styleFrom( + backgroundColor: const Color(0xFFD6F4FF), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(50), + ), + elevation: 0, + minimumSize: const Size(250, 50), + ), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( + const Text( 'Certificado profesional', style: TextStyle( color: Color(0xFF2BA4EC), fontSize: 17, ), ), - SizedBox(width: 15), + const SizedBox(width: 15), Icon( image_certificado != null ? Icons.check : Icons.file_upload_outlined, - color: Color(0xFF2BA4EC), + color: const Color(0xFF2BA4EC), size: 30, ), ], ), - style: ElevatedButton.styleFrom( - backgroundColor: Color(0xFFD6F4FF), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(50), - ), - elevation: 0, - minimumSize: Size(250, 50), - ), ), SizedBox(height: _space), TextFormField( controller: _especializacionController, - decoration: InputDecoration( + decoration: const InputDecoration( prefixIcon: Icon(Icons.assignment_ind_rounded), hintText: 'Especialización'), ), @@ -615,48 +616,56 @@ class ProfessionalProfileScreenState extends State { 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( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( + const Text( 'Especialización', style: TextStyle( color: Color(0xFF2BA4EC), fontSize: 17, ), ), - SizedBox(width: 15), + const SizedBox(width: 15), Icon( images_especializacion.isEmpty ? Icons.file_upload_outlined : Icons.check, - color: Color(0xFF2BA4EC), + color: const Color(0xFF2BA4EC), size: 30, ), ], ), - style: ElevatedButton.styleFrom( - backgroundColor: Color(0xFFD6F4FF), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(50), - ), - elevation: 0, - minimumSize: Size(250, 50), - ), ), ], )), ), Container( alignment: Alignment.bottomCenter, - margin: EdgeInsets.only(top: 120, right: 70, left: 70), + margin: const EdgeInsets.only(top: 120, right: 70, left: 70), child: ElevatedButton( onPressed: () { sendInfo(); }, + style: ElevatedButton.styleFrom( + backgroundColor: Color(0xFF2BA4EC), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(50), + ), + elevation: 0, + minimumSize: const Size(250, 50), + ), child: Row( mainAxisAlignment: MainAxisAlignment.center, - children: [ + children: const [ Text( 'Enviar información', style: TextStyle( @@ -673,14 +682,6 @@ class ProfessionalProfileScreenState extends State { ), ], ), - style: ElevatedButton.styleFrom( - backgroundColor: Color(0xFF2BA4EC), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(50), - ), - elevation: 0, - minimumSize: Size(250, 50), - ), )), ], ),