FIX_Minor Logo error
This commit is contained in:
parent
bf729885a3
commit
3e9a30b635
@ -307,7 +307,31 @@ class _changesPasswordState extends State<changesPassword> {
|
|||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
MainAxisAlignment.center,
|
MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
// Removed desktop-only back icon and logo to eliminate extra top spacing
|
// Desktop-only: center "<" and logo in one row
|
||||||
|
if (Responsive.isDesktop(context))
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
InkWell(
|
||||||
|
onTap: () {
|
||||||
|
context.go('/home');
|
||||||
|
},
|
||||||
|
child: const Icon(
|
||||||
|
Icons.chevron_left,
|
||||||
|
color: Color(0xFF000000),
|
||||||
|
size: 30,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Image.asset(
|
||||||
|
'assets/nhance_app_logo.png',
|
||||||
|
width: 150,
|
||||||
|
height: 150,
|
||||||
|
// color: Colors.green,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: Responsive.isDesktop(context)
|
height: Responsive.isDesktop(context)
|
||||||
? null
|
? null
|
||||||
@ -422,8 +446,8 @@ class _changesPasswordState extends State<changesPassword> {
|
|||||||
value.isEmpty) {
|
value.isEmpty) {
|
||||||
return 'Please enter your old password';
|
return 'Please enter your old password';
|
||||||
}
|
}
|
||||||
if (value.length < 6) {
|
if (value.length < 8) {
|
||||||
return 'Password must be at least 6 characters';
|
return 'Password must be at least 8 characters';
|
||||||
}
|
}
|
||||||
if (!RegExp(
|
if (!RegExp(
|
||||||
r'^(?=.*[A-Z])(?=.*[0-9]).{6,}$')
|
r'^(?=.*[A-Z])(?=.*[0-9]).{6,}$')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user