refactor: enhance error handling and theming in EnhancedErrorService

- Updated the EnhancedErrorService to utilize the dynamic theme context for improved color handling in SnackBars and AlertDialogs.
- Replaced hardcoded color values with theme-based colors to ensure better accessibility and visual consistency across the application.
- Added context parameter to various components to facilitate theme integration, enhancing the overall user experience.
- Improved the readability of error messages by applying appropriate text colors based on the current theme.
This commit is contained in:
cogwheel0
2025-10-02 11:39:17 +05:30
parent 1fa8412e0a
commit a85655d639
5 changed files with 48 additions and 19 deletions

View File

@@ -557,6 +557,7 @@ class ConduitAvatar extends StatelessWidget {
return BrandService.createBrandAvatar(
size: isCompact ? size * 0.8 : size,
fallbackText: text,
context: context,
);
}
}