You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Swapped Static Colors for Dynamic Theme Matching
Before: Your text selection theme was hardcoded to a maroon/red color (0xFF5F0E0D) regardless of whether the app was in light or dark mode.
After: Updated the theme to automatically detect if the app is in dark mode or light mode and change colors accordingly.
2. Implemented Pure White and Pure Black
Modified the code to use pure white (#FFFFFF) when the theme is dark and pure black (#000000) when the theme is light.
This was applied to the cursor color and the selection handle color.
3. Added Balanced Opacity for Readability
Instead of using solid white or black for the text selection background (which would completely block out and hide your text), we applied optimal opacity levels:
Dark Mode: White with 0.4 opacity.
Light Mode: Black with 0.2 opacity.
4. Integrated with Your Existing State Provider
Optimized the full _openEventEditor function by leveraging your existing Riverpod theme state (final isDark = ref.watch(themeProvider);).
Cleaned up the inner Theme widget to directly use this isDark boolean instead of performing redundant theme brightness checks.