refactor: enhance theme and error handling across the application
- Updated error handling in EnhancedErrorService to utilize context for color tokens, improving theme consistency. - Refactored various components to use context-aware shadow and color properties, enhancing visual coherence. - Replaced hardcoded color values with dynamic tokens in multiple widgets, ensuring better adaptability to theme changes. - Improved overall code maintainability by centralizing theme-related logic and reducing direct dependencies on static theme values.
This commit is contained in:
@@ -85,7 +85,7 @@ class _OnboardingSheetState extends ConsumerState<OnboardingSheet> {
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(AppBorderRadius.modal),
|
||||
),
|
||||
boxShadow: ConduitShadows.modal,
|
||||
boxShadow: ConduitShadows.modal(context),
|
||||
),
|
||||
child: SafeArea(
|
||||
child: Padding(
|
||||
@@ -228,7 +228,7 @@ class _IllustratedPage extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: context.conduitTheme.buttonPrimary,
|
||||
borderRadius: BorderRadius.circular(AppBorderRadius.avatar),
|
||||
boxShadow: ConduitShadows.glow,
|
||||
boxShadow: ConduitShadows.glow(context),
|
||||
),
|
||||
child: Icon(page.icon, color: context.conduitTheme.textInverse),
|
||||
).animate().scale(duration: AnimationDuration.fast),
|
||||
@@ -304,7 +304,7 @@ class _IllustratedPage extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: context.conduitTheme.buttonPrimary.withValues(alpha: alpha),
|
||||
boxShadow: ConduitShadows.glow,
|
||||
boxShadow: ConduitShadows.glow(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user