Giter Club home page Giter Club logo

flutter_inline_webview_macos's Introduction

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Streak Stats ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

flutter_inline_webview_macos's People

Contributors

akaboshinit avatar renovate[bot] avatar virajkanse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_inline_webview_macos's Issues

Evaluate Javascript

Hey , like Title says , can we evaluate javascript , and use a bridge or something to communicate

Gestures not working

Hi,

I'm currently trying to write a flutter application that uses webviews to display some content. I'm using some dependencies to handle the webview creation and interaction (I'm using webview_windows for Windows and webview_flutter for Android and iOS, just in case you're interested)

Looking for MacOS, I'm trying to use your dependency, which is the only one that fits my needs (an inline webview that interacts with the native WKWebView). But I'm having some issues with it, specifically when trying to interact with the webview's content using gestures.

The issue:

I load any website, and when I try to perform any gesture on the current webview's content, I get the following exception:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method acceptGesture on channel flutter/platform_views) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7) <asynchronous suspension>

I have not been able to sort that issue even though I'm providing a valid set of gestureRecognizers when instantiating InlineWebViewMacOs. Whatever I try, I keep receiving the same exception.

Steps to reproduce:

Clone a fresh copy of this repository, load the application and load any website you want (default youtube URL would be enough). Then just try to click on any part of the screen (it can be over a specific action or just an empty site of the page, same result).

Have you (or anybody else that may be reading this) faced this issue? Were you able to solve it? How?

If nobody found a solution, I'm open to start creating a solution to fix this. Would you be interested in a collaboration @akaboshinit?

Thank you in advance!

view doesn't load.

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2022-11-01 แ„‹แ…ฉแ„’แ…ฎ 12 02 48

Thank you so much for developing a wonderful plug-in.

I encountered an issue the screen does not display even if I load it.
Is there any setting to add?

How to detect load finish?

How to detect load finish?

add the function and navigationDelegate = self in Webview.swift ,but it not work?
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)
{
}

macos platformview not yet fully supported in flutter

flutter/flutter#41722

macOS platformview is not fully supported in flutter as this issue

There are a few critical issues that I have run into in developing this package.

  • Duplicate view id on hot-restart always results in an error
    flutter/flutter#110381

  • hot-reload and view-related state changes do not work from within the flutter UI
    flutter/flutter#48632
    ( This issue is worked around in this package by making changes from the platform channel at the same time as making changes to the platform view in flutter. But the usability is terrible )

  • Platform view crashes when app width is changed

As you can see, it is difficult to use, but not at the level of usability, and I feel that the development itself is very strict.
I love flutter, but I'm going to wait to develop it until I can find a way to address the above issues.

However, I'm sure there are many requests for inline webviews on macos like I did with this package, so I'd like to discuss with everyone how we can work around the above issues or how we can take a different approach to deal with them!

Feature request: Clear cookies and reload current page

I hope to be implemented on your plugin:

  • Clear stored cookies
  • Reload current page

For now, these are incompletely implemented because I got an error.

method:reload arguments:Optional(["allowingReadAccessTo": <null>, "urlRequest": {
    url = "https://music.youtube.com";
}]) :InAppWebViewMethodHandler
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method reload on channel dev.akaboshinit/flutter_inline_webview_macos_controller_0)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294:7)
<asynchronous suspension>
#1      InlineWebViewMacOsController.reload (package:flutter_inline_webview_macos/flutter_inline_webview_macos/flutter_inline_webview_macos_controller.dart:170:5)
<asynchronous suspension>

JFYI, I tried to implement as below. I'd appreciate if it is helpful.

Add method handler of "reload" and "clearCache" by m-b-t-n ยท Pull Request #2 ยท m-b-t-n/flutter_inline_webview_macos

Regards.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

asdf
.tool-versions
  • flutter 3.10.5
  • ruby 3.0.4
cocoapods
example/macos/Podfile
pub
example/pubspec.yaml
  • flutter
  • cupertino_icons ^1.0.2
  • flutter_lints ^2.0.0
  • dart >=2.17.0 <4.0.0
pubspec.yaml
  • flutter
  • plugin_platform_interface ^2.0.2
  • flutter_lints ^2.0.0
  • dart >=2.17.0 <4.0.0
  • flutter >=3.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.