Skip to content

prevent native tab bar from flashing wrong theme on creation#3

Open
icodelifee wants to merge 1 commit intoTechSupportz:mainfrom
icodelifee:main
Open

prevent native tab bar from flashing wrong theme on creation#3
icodelifee wants to merge 1 commit intoTechSupportz:mainfrom
icodelifee:main

Conversation

@icodelifee
Copy link
Copy Markdown

When the app theme differs from the system setting, the native tab bar briefly flashes the wrong appearance before correcting itself.

Screen.Recording.2026-03-16.at.11.44.15.PM.mov

Fix Summary

  • Override overrideUserInterfaceStyle on the UITabBarController to match the Flutter theme's isDark flag immediately on creation, preventing the native view from briefly flashing the system's default appearance
  • Track currentAppearanceIsDark so runtime theme switches correctly update using updateSelectionAndColors

Now:

Screen.Recording.2026-03-17.at.12.00.51.AM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant