-
Notifications
You must be signed in to change notification settings - Fork 9
Labels
Milestone
Description
Bug: Dark Mode Toggle Has No Effect
Environment
- Platforms: iOS & Android (TestFlight + debug builds)
- Devices: Multiple (e.g., iPhone, Pixel)
- App Version: 1.2.3 (build 456)
- Flutter SDK: 3.16.8
App State
- Always in dark mode, regardless of toggle
Steps to Reproduce
- Open the app and navigate to Settings.
- Toggle Dark Mode off.
- Navigate through Login, Photo Picker, and other screens.
Expected Behaviour
- App respects user theme selection:
- Light theme when dark mode is toggled off.
- Dark theme when toggled on.
- (If supported) “System” option mirrors OS light/dark mode.
Actual Behaviour
- App remains in dark mode regardless of toggle state.
- Affects readability of login page text and photo picker icons due to low contrast.
User Impact
- Users cannot switch to light mode, impacting accessibility and user preference.
- Reduced readability in some UI areas.
Acceptance Criteria
- Theme switches immediately on toggle (no restart required).
- Selected theme persists on cold start and resume.
- If “System” option is present, theme syncs with OS mode.
- All screens (Login, Photo Picker, etc.) respect chosen theme (no hardcoded overrides).
Technical Notes
- Ensure a single source of truth for theme (e.g., ThemeMode at MaterialApp).
- Persist theme selection in local storage (SharedPreferences / Hive).
- Audit for overrides like Brightness.dark.
- Add widget tests for:
- Toggle behaviour
- Persistence after restart
- System theme sync
Screenshots
tbc