Skip to content

Bug: We're stuck in dark mode! #289

@CherryCIC

Description

@CherryCIC

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

  1. Open the app and navigate to Settings.
  2. Toggle Dark Mode off.
  3. 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

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    MVPMVPbugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions