Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell navigation bar flickering during refresh (animation transition) after the menu/flyout item selection #20035

Closed
ivanzakharov opened this issue Jan 21, 2024 · 2 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working

Comments

@ivanzakharov
Copy link

Description

Out-of-the-box code sample with Shell navigation has a silly issue - when the flyout/menu item has been selected to jump to another content page, the navigation bar refreshes (or does the animation transition) completely with flickering and shows the white background for a fraction of a second.
It blocks us from using Shell for our Office-class business app.

Steps to Reproduce

  1. Take ShellFlyoutSample from .NET MAUI Samples
  2. Build it and run it on an Android emulator (Pixel 5, Android 13, API 33)
  3. Switch between flyout items to see the flickering issue

Link to public reproduction project repository

https://github.com/dotnet/maui-samples

Version with bug

8.0.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 13

Did you find any workaround?

No, tried to fix it by adding Shell.PresentationMode="NotAnimated" (into AppShell.xaml, MainPage.xaml), but it didn't help

Recorded video with the animation transition issue:
https://github.com/dotnet/maui/assets/4208052/ea145382-e254-4143-b74e-bf6a726de7cd

Relevant log output

No response

@ivanzakharov ivanzakharov added the t/bug Something isn't working label Jan 21, 2024
@ivanzakharov
Copy link
Author

Added another video that shows the issue with a white background underlying.
https://github.com/dotnet/maui/assets/4208052/cd9ddf35-ff69-4562-b2ee-42d6f2c466e5

BTW, the same white background appears in the dark theme.

@jsuarezruiz jsuarezruiz added platform/android 🤖 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Jan 22, 2024
@PureWeen
Copy link
Member

Duplicate of #6389

Yea, unfortunately when Shell was originally implemented the second page gets pushed as a completely new coordinator layout with its own toolbar so you get a flash as the entire screen is swapped out (toolbar and everything). NavigationPage used to also do this in XF, but with MAUI we simplified it all down so there's now just a universal ToolBar for the entire app and you don't get any flickering. Ideally we can get shell pivoted to all the same backend code as NavigationPage which will fix this issue and make all our lives simpler.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants