update
This commit is contained in:
@@ -740,7 +740,9 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
hintText: '+57',
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20.0),
|
||||
genderDb == ''
|
||||
? const SizedBox(height: 20.0)
|
||||
: const SizedBox(),
|
||||
genderDb == ''
|
||||
? GenderDropdown(
|
||||
onChanged: (selectedGender) {
|
||||
@@ -767,7 +769,10 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
),
|
||||
)
|
||||
: const SizedBox(),
|
||||
_email != null
|
||||
_email != null && _email != ''
|
||||
? const SizedBox(height: 20.0)
|
||||
: const SizedBox(),
|
||||
_email != null && _email != ''
|
||||
? TextFormField(
|
||||
onTap: () {
|
||||
_showEmailUpdateDialog(context);
|
||||
@@ -775,12 +780,13 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
readOnly: true,
|
||||
controller: _emailController,
|
||||
decoration: const InputDecoration(
|
||||
prefixIcon: Icon(Icons.email_outlined),
|
||||
hintText: 'Email (Obligatorio)'),
|
||||
prefixIcon: Icon(Icons.email_outlined),
|
||||
hintText: 'Email (Obligatorio)',
|
||||
),
|
||||
)
|
||||
: const SizedBox(),
|
||||
const SizedBox(height: 20),
|
||||
_email == null
|
||||
_email == null || _email == ''
|
||||
? PrimaryCheckbox(
|
||||
text:
|
||||
'Habilitar inicio de sesión con correo (Opcional)',
|
||||
@@ -828,7 +834,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20.0),
|
||||
_email != null
|
||||
_email != null && _email != ''
|
||||
? const SizedBox.shrink()
|
||||
: TextFormField(
|
||||
controller: _passwordController,
|
||||
@@ -866,7 +872,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
),
|
||||
hintText: 'Contraseña'),
|
||||
),
|
||||
_email != null
|
||||
_email != null && _email != ''
|
||||
? const SizedBox.shrink()
|
||||
: const SizedBox(height: 20),
|
||||
Container(
|
||||
@@ -924,7 +930,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
padding: const EdgeInsets.only(bottom: 30),
|
||||
child: Column(
|
||||
children: [
|
||||
_email != null
|
||||
_email != null && _email != ''
|
||||
? PrimaryButton(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
|
||||
Reference in New Issue
Block a user