mensajes en el new password
This commit is contained in:
@@ -86,9 +86,15 @@ class _NewPasswordScreenState extends State<NewPasswordScreen> {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: 100),
|
padding: const EdgeInsets.only(top: 20),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
const Text(
|
||||||
|
"Ten en cuenta que al cambiar tu contraseña, se cerrará automáticamente tu sesión.",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: Colors.grey),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 40),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: _currentPasswordController,
|
controller: _currentPasswordController,
|
||||||
obscureText: _obscureText,
|
obscureText: _obscureText,
|
||||||
@@ -109,7 +115,7 @@ class _NewPasswordScreenState extends State<NewPasswordScreen> {
|
|||||||
),
|
),
|
||||||
hintText: 'Contraseña (Actual)'),
|
hintText: 'Contraseña (Actual)'),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 40.0),
|
const SizedBox(height: 40),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: _newPasswordController,
|
controller: _newPasswordController,
|
||||||
obscureText: _obscureText2,
|
obscureText: _obscureText2,
|
||||||
@@ -130,13 +136,19 @@ class _NewPasswordScreenState extends State<NewPasswordScreen> {
|
|||||||
),
|
),
|
||||||
hintText: 'Contraseña (Nueva)'),
|
hintText: 'Contraseña (Nueva)'),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 80.0),
|
const SizedBox(height: 80),
|
||||||
PrimaryButtom(
|
PrimaryButtom(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
updatePassword(_currentPasswordController.text.trim(),
|
updatePassword(_currentPasswordController.text.trim(),
|
||||||
_newPasswordController.text.trim());
|
_newPasswordController.text.trim());
|
||||||
},
|
},
|
||||||
label: 'Actualizar contraseña'),
|
label: 'Actualizar contraseña'),
|
||||||
|
const SizedBox(height: 30),
|
||||||
|
const Text(
|
||||||
|
"Esta contraseña es valida si el inicio de sesión es por email.",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: Colors.grey),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user