You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the crash on firebase
MissingPluginException(No implementation found for method loadData on channel com.pichillilorenzo/flutter_inappwebview_632)
MethodChannel._invokeMethod
Expected Behavior
crash should not be there on firebase
Steps with code example to reproduce
_updateTextSize(InAppWebViewController? webViewController) async {
int textSize = selectedFontSize.value.toInt();
if (selectedFontSize.value == 12) {
textSize = 100;
} else if (selectedFontSize.value == 16) {
textSize = 120;
} else if (selectedFontSize.value == 20) {
textSize = 140;
} else if (selectedFontSize.value == 24) {
textSize = 180;
}
try {
if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) {
await webViewController?.setSettings(
settings: InAppWebViewSettings(textZoom: textSize));
} else {
// update current text size
await webViewController?.evaluateJavascript(source: """
document.body.style.textSizeAdjust = '$textSize%';
document.body.style.webkitTextSizeAdjust = '$textSize%';
""");
// update the User Script for the next page load
await webViewController?.removeUserScript(
userScript: textSizeUserScript);
textSizeUserScript.source =
kTextSizeSourceJS.replaceAll(kTextSizePlaceholder, '$textSize');
await webViewController?.addUserScript(userScript: textSizeUserScript);
}
} catch (e) {
LogManager.logError('unable to change font size');
}
_updateFontSize(InAppWebViewController? controller) {
try {
if (Get.context!.isPhone) {
_updateTextSize(controller);
} else {
int textSize = selectedFontSize.value.toInt();
if (selectedFontSize.value == 12) {
textSize = 14;
} else if (selectedFontSize.value == 16) {
textSize = 18;
} else if (selectedFontSize.value == 20) {
textSize = 21;
} else if (selectedFontSize.value == 24) {
textSize = 24;
}
controller?.evaluateJavascript(
source:
"document.getElementsByTagName('body')[0].style.fontSize = '${textSize}px'");
}
} on Exception catch (err) {
LogManager.logError(err.toString());
}
}
Is there an existing issue for this?
Current Behavior
I am getting the crash on firebase
MissingPluginException(No implementation found for method loadData on channel com.pichillilorenzo/flutter_inappwebview_632)
MethodChannel._invokeMethod
Expected Behavior
crash should not be there on firebase
Steps with code example to reproduce
_updateTextSize(InAppWebViewController? webViewController) async {
int textSize = selectedFontSize.value.toInt();
if (selectedFontSize.value == 12) {
textSize = 100;
} else if (selectedFontSize.value == 16) {
textSize = 120;
} else if (selectedFontSize.value == 20) {
textSize = 140;
} else if (selectedFontSize.value == 24) {
textSize = 180;
}
_updateFontSize(InAppWebViewController? controller) {
try {
if (Get.context!.isPhone) {
_updateTextSize(controller);
} else {
int textSize = selectedFontSize.value.toInt();
if (selectedFontSize.value == 12) {
textSize = 14;
} else if (selectedFontSize.value == 16) {
textSize = 18;
} else if (selectedFontSize.value == 20) {
textSize = 21;
} else if (selectedFontSize.value == 24) {
textSize = 24;
}
controller?.evaluateJavascript(
source:
"document.getElementsByTagName('body')[0].style.fontSize = '${textSize}px'");
}
} on Exception catch (err) {
LogManager.logError(err.toString());
}
}
Stacktrace/Logs
0 ??? 0x0 MethodChannel._invokeMethod + 332 (platform_channel.dart:332)
1 ??? 0x0 IOSInAppWebViewController.loadData + 1842 (in_app_webview_controller.dart:1842)
Flutter version
v3.24.3
Operating System, Device-specific and/or Tool
ios 17.0+
Plugin version
v6.1.0, v6.0.0
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: