FIX_Minor Logo error
This commit is contained in:
parent
bf729885a3
commit
3e9a30b635
@ -307,7 +307,31 @@ class _changesPasswordState extends State<changesPassword> {
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
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(
|
||||
height: Responsive.isDesktop(context)
|
||||
? null
|
||||
@ -422,8 +446,8 @@ class _changesPasswordState extends State<changesPassword> {
|
||||
value.isEmpty) {
|
||||
return 'Please enter your old password';
|
||||
}
|
||||
if (value.length < 6) {
|
||||
return 'Password must be at least 6 characters';
|
||||
if (value.length < 8) {
|
||||
return 'Password must be at least 8 characters';
|
||||
}
|
||||
if (!RegExp(
|
||||
r'^(?=.*[A-Z])(?=.*[0-9]).{6,}$')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user