FIX_image
This commit is contained in:
parent
3e9a30b635
commit
24f532f750
@ -67,6 +67,12 @@ class _changesPasswordState extends State<changesPassword> {
|
||||
final confirmPassword = confirmPasswordController.text.trim();
|
||||
try {
|
||||
if (_formKey.currentState!.validate()) {
|
||||
// Extra safety checks before calling the API
|
||||
if (oldpassword == newPassword) {
|
||||
ToastHelper.showErrorToast(
|
||||
context, 'New password cannot be same as old password');
|
||||
return;
|
||||
}
|
||||
if (!isPasswordValid) {
|
||||
ToastHelper.showErrorToast(
|
||||
context,
|
||||
|
||||
@ -1935,6 +1935,14 @@ class _addOnsDetailsState extends State<addOnsDetails> {
|
||||
Image.network(
|
||||
clientLogo ?? '', // Nhance logo
|
||||
height: 40,
|
||||
errorBuilder: (BuildContext context, Object error,
|
||||
StackTrace? stackTrace) {
|
||||
return Image.asset(
|
||||
'assets/Solid_gray.png',
|
||||
height: 40,
|
||||
fit: BoxFit.contain,
|
||||
);
|
||||
},
|
||||
),
|
||||
// Image.network(
|
||||
// 'https://i.imgur.com/qOihOvk.png', // Prodapt logo
|
||||
|
||||
@ -760,15 +760,15 @@ class _empDetailsState extends State<empDetails> {
|
||||
),
|
||||
);
|
||||
},
|
||||
// errorBuilder: (BuildContext context,
|
||||
// Object error, StackTrace? stackTrace) {
|
||||
// return Image.asset(
|
||||
// 'assets/Solid_gray.png', // Replace 'default_image.png' with your default image asset path
|
||||
// width: 80,
|
||||
// height: 80,
|
||||
// fit: BoxFit.cover,
|
||||
// );
|
||||
// },
|
||||
errorBuilder: (BuildContext context,
|
||||
Object error, StackTrace? stackTrace) {
|
||||
return Image.asset(
|
||||
'assets/Solid_gray.png',
|
||||
width: 80,
|
||||
height: 80,
|
||||
fit: BoxFit.cover,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@ -1413,6 +1413,14 @@ setState(() {
|
||||
Image.network(
|
||||
clientLogo ?? '', // Nhance logo
|
||||
height: 40,
|
||||
errorBuilder: (BuildContext context, Object error,
|
||||
StackTrace? stackTrace) {
|
||||
return Image.asset(
|
||||
'assets/Solid_gray.png',
|
||||
height: 40,
|
||||
fit: BoxFit.contain,
|
||||
);
|
||||
},
|
||||
),
|
||||
// Image.network(
|
||||
// 'https://i.imgur.com/qOihOvk.png', // Prodapt logo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user