Skip to content

System Navigation Bar Color Doesn't Update on Theme Change #1333

Open
@Gaurav-Kushwaha-1225

Description

@Gaurav-Kushwaha-1225

Summary:

When changing the theme after opening the app, the system navigation bar color does not update accordingly. The expected behavior is for the navigation bar to match the theme's background color, but it retains the previous theme's color. Reopening the after closing doesn't reproduce this issue.

Steps to reproduce:

  • Open the Zulip Flutter app.
  • Change the theme (e.g., from light to dark or vice versa).
  • Observe the system navigation bar color at the bottom of the screen.

Device and environment:

  • Device: CPH2381
  • OS version: 14
  • Zulip app version: Latest Commit when creating this issue ca26330
  • Build variant: Debug

Screenshots:

  • Opened app in dark theme but after changing theme to light.
Image Image
  • Opened app in light theme but after changing theme to dark.
Image Image

Possible solution (if applicable):

  • The issue might be related to SystemChrome.setSystemUIOverlayStyle, which may not be getting updated when the theme changes. Ensuring this function is called whenever the theme is switched could fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-AndroidIssues specific to Android, or requiring Android-specific worka-designVisual and UX designupstreamWould benefit from work in Flutter or another upstream

    Type

    No type

    Projects

    • Status

      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions