0

I have a dark themed Flutter app with a dark system nav bar. Phone is in dark mode too.

When Google's Apis are used and overlay a dialog, they can alter the color of the navigation bar. Is there anyway to prevent this?

With Google Sign In, the nav bar goes white and then reverts, it's not optimal but it's acceptable. But using Google Billing, after dismissing the dialog, the nav bar blinks in white and it's very frustrating. Other apps (native) have this issue too.

1 Answer 1

0

Can you try with this code?

WidgetsBinding.instance.renderView.automaticSystemUiAdjustment = false;
1
  • I found that solution in this Flutter issue, but it's not working for the Billing Api. Anyway, I think it's great to have it as an answer as it may help other.
    – Bugzilla
    Dec 14, 2021 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.