getMetaThemeColor method
Returns an instance of Color representing the content
value of the
<meta name="theme-color" content="">
tag of the current WebView, if available, otherwise null
.
NOTE: on Android, Web, iOS < 15.0 and MacOS < 12.0, it is implemented using JavaScript.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS (Official API - WKWebView.themeColor)
- MacOS (Official API - WKWebView.themeColor)
- Web
Implementation
Future<Color?> getMetaThemeColor() => platform.getMetaThemeColor();