This commit is contained in:
Juan Felipe Duarte
2023-06-17 10:46:25 -05:00
parent d357d543d9
commit 4c9770247d
+33 -25
View File
@@ -425,6 +425,7 @@ class _ProfessionalProfileWebScreenState
double _space = 10; double _space = 10;
return Scaffold( return Scaffold(
backgroundColor: const Color(0xFFD6F4FF),
appBar: PopAppbar( appBar: PopAppbar(
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
@@ -432,6 +433,15 @@ class _ProfessionalProfileWebScreenState
label: 'Perfil profesional'), label: 'Perfil profesional'),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Center( child: Center(
child: SizedBox(
width: 350,
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: _isLoading child: _isLoading
? const Padding( ? const Padding(
padding: EdgeInsets.symmetric(vertical: 30), padding: EdgeInsets.symmetric(vertical: 30),
@@ -443,18 +453,9 @@ class _ProfessionalProfileWebScreenState
padding: const EdgeInsets.only(top: 20), padding: const EdgeInsets.only(top: 20),
child: (selectedImagInBytes != null) child: (selectedImagInBytes != null)
? LocalPhotoWeb(file: selectedImagInBytes) ? LocalPhotoWeb(file: selectedImagInBytes)
: ReferencePhotoWeb(ref: storage.ref().child(_photo)), : ReferencePhotoWeb(
ref: storage.ref().child(_photo)),
), ),
// Padding(
// padding: const EdgeInsets.symmetric(vertical: 10),
// child: ElevatedButton.icon(
// onPressed: () {
// _selectFile(true);
// },
// icon: const Icon(Icons.image),
// label: const Text('Elige una imagen'),
// ),
// ),
SizedBox( SizedBox(
width: 300, width: 300,
child: Form( child: Form(
@@ -493,7 +494,8 @@ class _ProfessionalProfileWebScreenState
minimumSize: const Size(250, 50), minimumSize: const Size(250, 50),
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment:
MainAxisAlignment.center,
children: [ children: [
const Text( const Text(
'Cedula', 'Cedula',
@@ -519,7 +521,8 @@ class _ProfessionalProfileWebScreenState
onTap: () async { onTap: () async {
final String? profesion = final String? profesion =
(await Navigator.pushNamed( (await Navigator.pushNamed(
context, '/profession')) as String?; context, '/profession'))
as String?;
if (profesion != null) { if (profesion != null) {
setState(() { setState(() {
@@ -528,12 +531,14 @@ class _ProfessionalProfileWebScreenState
} }
}, },
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: prefixIcon: const Icon(
const Icon(Icons.assignment_ind_rounded), Icons.assignment_ind_rounded),
suffixIcon: const Icon(Icons.arrow_drop_down), suffixIcon:
const Icon(Icons.arrow_drop_down),
hintStyle: profession == '' hintStyle: profession == ''
? const TextStyle() ? const TextStyle()
: const TextStyle(color: Colors.black87), : const TextStyle(
color: Colors.black87),
hintText: profession == '' hintText: profession == ''
? 'Profesión (Obligatorio)' ? 'Profesión (Obligatorio)'
: profession), : profession),
@@ -552,7 +557,8 @@ class _ProfessionalProfileWebScreenState
minimumSize: const Size(250, 50), minimumSize: const Size(250, 50),
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment:
MainAxisAlignment.center,
children: [ children: [
const Text( const Text(
'Certificado profesional', 'Certificado profesional',
@@ -594,7 +600,8 @@ class _ProfessionalProfileWebScreenState
minimumSize: const Size(250, 50), minimumSize: const Size(250, 50),
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment:
MainAxisAlignment.center,
children: [ children: [
const Text( const Text(
'Especialización', 'Especialización',
@@ -619,9 +626,7 @@ class _ProfessionalProfileWebScreenState
), ),
), ),
Container( Container(
width: 450, margin: const EdgeInsets.only(top: 40),
margin: const EdgeInsets.only(
left: 40, right: 40, top: 40, bottom: 0),
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 20, vertical: 15), horizontal: 20, vertical: 15),
decoration: BoxDecoration( decoration: BoxDecoration(
@@ -647,8 +652,8 @@ class _ProfessionalProfileWebScreenState
Expanded( Expanded(
child: Text( child: Text(
'Para añadir mas de una especialidad, envie mas fotos y separe por comas (,).', 'Para añadir mas de una especialidad, envie mas fotos y separe por comas (,).',
style: style: TextStyle(
TextStyle(color: Colors.black, fontSize: 14), color: Colors.black, fontSize: 14),
), ),
), ),
], ],
@@ -657,7 +662,7 @@ class _ProfessionalProfileWebScreenState
Container( Container(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
margin: const EdgeInsets.only( margin: const EdgeInsets.only(
top: 80, right: 20, left: 20, bottom: 30), top: 30, right: 20, left: 20, bottom: 30),
child: ElevatedButton( child: ElevatedButton(
onPressed: () { onPressed: () {
if (_formKey.currentState!.validate()) { if (_formKey.currentState!.validate()) {
@@ -698,6 +703,9 @@ class _ProfessionalProfileWebScreenState
), ),
), ),
), ),
),
),
),
); );
} }
} }