ocultar boton cambiar contraseña
This commit is contained in:
@@ -590,34 +590,36 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
|||||||
padding: const EdgeInsets.only(bottom: 30),
|
padding: const EdgeInsets.only(bottom: 30),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
_email != null
|
||||||
onPressed: () {
|
? ElevatedButton(
|
||||||
Navigator.push(
|
onPressed: () {
|
||||||
context,
|
Navigator.push(
|
||||||
CupertinoPageRoute(
|
context,
|
||||||
builder: (BuildContext context) {
|
CupertinoPageRoute(
|
||||||
return NewPasswordScreen();
|
builder: (BuildContext context) {
|
||||||
|
return NewPasswordScreen();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
style: ElevatedButton.styleFrom(
|
||||||
);
|
backgroundColor: const Color(0xFF2BA4EC),
|
||||||
},
|
shape: RoundedRectangleBorder(
|
||||||
style: ElevatedButton.styleFrom(
|
borderRadius: BorderRadius.circular(50),
|
||||||
backgroundColor: const Color(0xFF2BA4EC),
|
),
|
||||||
shape: RoundedRectangleBorder(
|
elevation: 0,
|
||||||
borderRadius: BorderRadius.circular(50),
|
minimumSize: const Size(300, 45),
|
||||||
),
|
),
|
||||||
elevation: 0,
|
child: const Text(
|
||||||
minimumSize: const Size(300, 45),
|
'Cambiar Contraseña',
|
||||||
),
|
style: TextStyle(
|
||||||
child: const Text(
|
color: Colors.white,
|
||||||
'Cambiar Contraseña',
|
fontWeight: FontWeight.bold,
|
||||||
style: TextStyle(
|
fontSize: 17,
|
||||||
color: Colors.white,
|
),
|
||||||
fontWeight: FontWeight.bold,
|
),
|
||||||
fontSize: 17,
|
)
|
||||||
),
|
: SizedBox(height: 20),
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 60),
|
const SizedBox(height: 60),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|||||||
@@ -551,34 +551,36 @@ class _ProfileWebScreenState extends State<ProfileWebScreen> {
|
|||||||
padding: const EdgeInsets.only(bottom: 30),
|
padding: const EdgeInsets.only(bottom: 30),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
_email != null
|
||||||
onPressed: () {
|
? ElevatedButton(
|
||||||
Navigator.push(
|
onPressed: () {
|
||||||
context,
|
Navigator.push(
|
||||||
CupertinoPageRoute(
|
context,
|
||||||
builder: (BuildContext context) {
|
CupertinoPageRoute(
|
||||||
return NewPasswordScreen();
|
builder: (BuildContext context) {
|
||||||
|
return NewPasswordScreen();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
style: ElevatedButton.styleFrom(
|
||||||
);
|
backgroundColor: const Color(0xFF2BA4EC),
|
||||||
},
|
shape: RoundedRectangleBorder(
|
||||||
style: ElevatedButton.styleFrom(
|
borderRadius: BorderRadius.circular(50),
|
||||||
backgroundColor: const Color(0xFF2BA4EC),
|
),
|
||||||
shape: RoundedRectangleBorder(
|
elevation: 0,
|
||||||
borderRadius: BorderRadius.circular(50),
|
minimumSize: const Size(300, 45),
|
||||||
),
|
),
|
||||||
elevation: 0,
|
child: const Text(
|
||||||
minimumSize: const Size(300, 45),
|
'Cambiar Contraseña',
|
||||||
),
|
style: TextStyle(
|
||||||
child: const Text(
|
color: Colors.white,
|
||||||
'Cambiar Contraseña',
|
fontWeight: FontWeight.bold,
|
||||||
style: TextStyle(
|
fontSize: 17,
|
||||||
color: Colors.white,
|
),
|
||||||
fontWeight: FontWeight.bold,
|
),
|
||||||
fontSize: 17,
|
)
|
||||||
),
|
: const SizedBox(height: 20),
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 60),
|
const SizedBox(height: 60),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|||||||
Reference in New Issue
Block a user