setScreenScale method
- required double scale,
Sets the device pixel ratio (scale factor) for the screen where the WebView is displayed.
The scale factor represents the ratio between physical pixels and logical pixels. Setting this affects how content is rendered on HiDPI displays.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit (Official API - wpe_screen_set_scale)
Parameters - Officially Supported Platforms/Implementations:
scale: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> setScreenScale({required double scale}) =>
platform.setScreenScale(scale: scale);