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

Allow setting StatusBarColor when using InAppBrowser #2194

Open
PropFault opened this issue Jun 21, 2024 · 1 comment
Open

Allow setting StatusBarColor when using InAppBrowser #2194

PropFault opened this issue Jun 21, 2024 · 1 comment

Comments

@PropFault
Copy link

Environment

Flutter version: Flutter (Channel beta, 3.23.0-0.1.pre, on Pop!_OS 22.04 LTS 6.9.3-surface-2, locale en_US.UTF-8)
Plugin version: "6.0.0"
Android version: LineageOS 20-20240406-NIGHTLY-beyond0lte ANDROID 13
iOS version: iOS 13.0
Xcode version: N/A
Device information: Samsung Galaxy S10E, Apple iPhone 8

Description

What you'd like to happen:

There should be a way to customize the StatusBarColor / Top System bar on Android and iOS when using InAppBrowser.
As InAppBrowser covers the entire Flutter Application, it overrides any changes made to the StatusBar using a Package like Statusbarcolor_ns.

This would allow someone writing a wrapper for a website to have the StatusBar integrate nicely with the Website Header or Background Color, improving the UI Look-and-Feel.

I have recently migrated from InAppWebView to InAppBrowsers due to Performance Issues when opening the Android Softboard and this is the only Feature I am missing to make this work. If there is already a way of doing this, please inform me. This would be greatly appreciated.

Alternatives you've considered:

An alternative Idea would be to somehow make the Status bar transparent or otherwise pass through the Status-Bar of the underlying Flutter Application. I don't know if this is technically possible.

Copy link

👋 @PropFault

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

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

No branches or pull requests

1 participant