Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash when run injectCSSFileFromUrl #644

Closed
5 tasks done
omralcrt opened this issue Jan 18, 2021 · 1 comment
Closed
5 tasks done

App crash when run injectCSSFileFromUrl #644

omralcrt opened this issue Jan 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@omralcrt
Copy link
Contributor

Environment

Technology Version
Flutter version 1.22.5
Plugin version 4.0.0+4
Android version 10
iOS version 12
Xcode version 12.3

Device information: OnePlus 5 & iPhone 12 Pro Max

Description

Expected behavior:
After run below code, I expect to apply given css.

inAppWebViewController.injectCSSFileFromUrl(urlFile: "urlFileString");

Current behavior:
But when run above code, app crash.

Unhandled Exception: MissingPluginException(No implementation found for method injectStyleFile on channel com.pichillilorenzo/flutter_inappwebview_0)

Stacktrace/Logcat

[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method injectStyleFile on channel com.pichillilorenzo/flutter_inappwebview_0)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
<asynchronous suspension>
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#2      InAppWebViewController.injectCSSFileFromUrl (package:flutter_inappwebview/src/in_app_webview_controller.dart:1400:20)
#3      PostDetailViewModel.runCss.<anonymous closure> (package:Webrazzi/views/post_detail/post_detail_view_model.dart:135:18)
#4      ListMixin.forEach (dart:collection/list.dart:86:13)
#5      PostDetailViewModel.runCss (package:Webrazzi/views/post_detail/post_detail_view_model.dart:134:16)
#6      PostDetailView.buildHtml.<anonymous closure> (package:Webrazzi/views/post_detail/post_detail_view.dart:219:17)
#7      InAppWebViewController.handleMethod (package:flutter_inappwebview/sr<…>
Copy link

github-actions bot commented Nov 8, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants