Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter AppWebView canGoBack中的颤振-未找到方法的实现_Flutter_Dart_Flutter Inappwebview - Fatal编程技术网

Flutter AppWebView canGoBack中的颤振-未找到方法的实现

Flutter AppWebView canGoBack中的颤振-未找到方法的实现,flutter,dart,flutter-inappwebview,Flutter,Dart,Flutter Inappwebview,我正在为我的Flatter浏览器应用程序开发前几页的导航,为此,我使用了InAppWebViewController的goBack和goForward方法 为了检查是否可以返回(更改导航按钮的颜色),我还调用了canGoBack方法。当它返回Future时,我使用FutureBuilder来显示这些图标 我将canGoBack()或canGoForward()传播到FutureBuilder的未来字段。然后很多奇怪的事情发生了:有时当我在不同的标签之间切换时(工作方式与中的标签类似),我会收到:

我正在为我的Flatter浏览器应用程序开发前几页的导航,为此,我使用了
InAppWebViewController
goBack
goForward
方法

为了检查是否可以返回(更改导航按钮的颜色),我还调用了
canGoBack
方法。当它返回Future时,我使用
FutureBuilder
来显示这些图标

我将
canGoBack()
canGoForward()
传播到
FutureBuilder
的未来字段。然后很多奇怪的事情发生了:有时当我在不同的标签之间切换时(工作方式与中的标签类似),我会收到: MissingluginException:未在channel com.pichillilorenzo/flatter_应用网络视图中实现方法canGoForward,其中n是一些数字

错误通常发生在我从tabs页面弹出带有按钮和InAppWebView的小部件时

我搜索了所有相关的github问题,没有找到任何相关的,在android(emulator+real device)、iOS(simulator+real device)上测试过,我甚至看不到如何重现这个bug的模式

因此,我有几个问题:

  • 发生这种情况的原因可能是什么?乍一看,这是随机发生的
  • “频道”在这里的确切含义是什么?我很高兴能读到更多关于这方面的信息
  • 这可能是因为我使用FutureBuilder造成的吗