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

@@ -314,6 +314,7 @@ class _AuthenticationPageState extends ConsumerState<AuthenticationPage> {
size: 48,
useGradient: true,
addShadow: true,
context: context,
).animate().scale(
duration: AnimationDuration.pageTransition,
curve: Curves.easeOutBack,

View File

@@ -356,6 +356,7 @@ class _ServerConnectionPageState extends ConsumerState<ServerConnectionPage> {
size: 64,
useGradient: true,
addShadow: true,
context: context,
),
// Reviewer mode badge
if (reviewerMode)