adjustWebviewZoom static method

void adjustWebviewZoom({
  1. int scale = 4,
})

Implementation

static void adjustWebviewZoom({int scale = 4}) {
  controller!.setNavigationDelegate(NavigationDelegate(
    onPageFinished: (String url) async {
//document.body.style.zoom = 5; NOT SUPPORTED
      await controller!.runJavaScript("""
            document.body.style.transform = "scale(${scale.toString()})";
            document.body.style.transformOrigin = "0 0";
          """);
    },
  ));
}