transparentBackground property
getter/setter pair
Set to true to make the background of the WebView transparent. If your app has a dark theme, this can prevent a white flash on initialization. The default value is false.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView 12.0+
- Windows WebView2 1.0.774.44+ (Official API - ICoreWebView2Controller2.put_DefaultBackgroundColor)
Implementation
bool? transparentBackground;