PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING constant
ForceDarkStrategy
const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING
In this mode WebView
content will be darkened by a user agent unless web page supports dark theme.
WebView
determines whether web pages supports dark theme by the presence of color-scheme
metadata containing "dark"
value.
For example, <meta name="color-scheme" content="dark light">
.
If the metadata is not presented WebView
content will be darkened by a user agent and prefers-color-scheme
media query will evaluate to light.
See specification for more information.
Implementation
static const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING =
ForceDarkStrategy._internal(2, 2);