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:
@@ -557,6 +557,7 @@ class ConduitAvatar extends StatelessWidget {
|
||||
return BrandService.createBrandAvatar(
|
||||
size: isCompact ? size * 0.8 : size,
|
||||
fallbackText: text,
|
||||
context: context,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user