GithubHelp home page GithubHelp logo

Comments (7)

jiusanzhou avatar jiusanzhou commented on June 9, 2024

请描述一下具体是什么问题,并贴上相应的日志信息。

from flutter_floatwing.

cnyunguo avatar cnyunguo commented on June 9, 2024

您好,我重现了demo,创建悬浮窗之后会影响到amap_map_fluttify的回调。

from flutter_floatwing.

cnyunguo avatar cnyunguo commented on June 9, 2024

重现办法:

  • 打开悬浮窗,获取位置:NO
  • 获取位置,打开悬浮窗,再次获取位置:OK

from flutter_floatwing.

cnyunguo avatar cnyunguo commented on June 9, 2024

Flutter (Channel stable, 2.10.5-0.0.pre.1, on Microsoft Windows [Version 10.0.18363.1556], locale zh-CN)
Kotlin Version = '1.6.10'

from flutter_floatwing.

jiusanzhou avatar jiusanzhou commented on June 9, 2024

我尝试了一下,你这个demo依然在我的环境中无法编译成功,是你依赖的那个库的问题。我暂时没时间降flutter版本,因为我并非客户端开发。

我这里给个猜测你可以去验证一下:

  • amap_map_fluttify 这个插件是静态注册channel的,你启动window时,因为也代码是同一份也导入这个库,会再次注册method channel,导致main engine中的channel handler失效

你可以通过下面的一些方法验证,

  • 在window中调用你需要的方法,看看是否正常
  • window中代码独立出来,看看是否正常

from flutter_floatwing.

cnyunguo avatar cnyunguo commented on June 9, 2024

我尝试了一下,你这个demo依然在我的环境中无法编译成功,是你依赖的那个库的问题。我暂时没时间降flutter版本,因为我并非客户端开发。

我这里给个猜测你可以去验证一下:

  • amap_map_fluttify 这个插件是静态注册channel的,你启动window时,因为也代码是同一份也导入这个库,会再次注册method channel,导致main engine中的channel handler失效

你可以通过下面的一些方法验证,

  • 在window中调用你需要的方法,看看是否正常
  • window中代码独立出来,看看是否正常

谢谢,float window里面是正常的,主程序里面的channel handler缺失是被float window中重置替代了,您刚才所说静态注册channel,您的思路是对的。

我在考虑怎么避免float window的时候重置,在float window里面我可以使用其他的定位方法。

from flutter_floatwing.

jiusanzhou avatar jiusanzhou commented on June 9, 2024

Hi, 这个问题我会在一个新的issue中来跟踪,所以会关闭这个问题。

from flutter_floatwing.

Related Issues (18)

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.