feat: Implement image cache eviction for S3 images and enhance image loading error handling.

This commit is contained in:
pradeepkumar
2026-03-14 15:26:08 +05:30
parent ad94db5620
commit 7b9c19ec67
4 changed files with 53 additions and 35 deletions

View File

@@ -126,33 +126,32 @@ class _ChangePasswordTabState extends ConsumerState<ChangePasswordTab> {
),
),
const SizedBox(height: 14),
SizedBox(
height: 38,
child: TextField(
controller: controller,
obscureText: obscure,
style: const TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
),
decoration: InputDecoration(
contentPadding:
const EdgeInsets.symmetric(horizontal: 26, vertical: 8),
border: border,
enabledBorder: border,
focusedBorder: border,
suffixIcon: GestureDetector(
onTap: onToggle,
child: Icon(
obscure ? Icons.visibility_off_outlined : Icons.visibility_outlined,
size: 18,
color: AppColors.primaryDark.withValues(alpha: 0.5),
),
TextField(
controller: controller,
obscureText: obscure,
textAlignVertical: TextAlignVertical.center,
style: const TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
),
decoration: InputDecoration(
isDense: true,
contentPadding:
const EdgeInsets.fromLTRB(12, 12, 8, 12),
border: border,
enabledBorder: border,
focusedBorder: border,
suffixIcon: GestureDetector(
onTap: onToggle,
child: Icon(
obscure ? Icons.visibility_off_outlined : Icons.visibility_outlined,
size: 18,
color: AppColors.primaryDark.withValues(alpha: 0.5),
),
suffixIconConstraints: const BoxConstraints(minWidth: 40),
),
suffixIconConstraints: const BoxConstraints(minWidth: 40),
),
),
],