Comments (7)
请描述一下具体是什么问题,并贴上相应的日志信息。
from flutter_floatwing.
您好,我重现了demo,创建悬浮窗之后会影响到amap_map_fluttify的回调。
from flutter_floatwing.
重现办法:
- 打开悬浮窗,获取位置:NO
- 获取位置,打开悬浮窗,再次获取位置:OK
from flutter_floatwing.
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.
我尝试了一下,你这个demo依然在我的环境中无法编译成功,是你依赖的那个库的问题。我暂时没时间降flutter版本,因为我并非客户端开发。
我这里给个猜测你可以去验证一下:
amap_map_fluttify
这个插件是静态注册channel的,你启动window时,因为也代码是同一份也导入这个库,会再次注册method channel,导致main engine中的channel handler失效
你可以通过下面的一些方法验证,
- 在window中调用你需要的方法,看看是否正常
- window中代码独立出来,看看是否正常
from flutter_floatwing.
我尝试了一下,你这个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.
Hi, 这个问题我会在一个新的issue中来跟踪,所以会关闭这个问题。
from flutter_floatwing.
Related Issues (18)
- issues when developing
- After a while `launchMainActivity` starts failed HOT 4
- 无法获取window HOT 2
- 在window里start一个新的window不成功
- MissingPluginException while running Demo HOT 2
- open kiosk mode in overlay windpw HOT 2
- EventType.WindowDestroy returned data is null
- Cannot `start` Window with `entry-point` HOT 2
- 使用flutter 3.7.5运行example点击assitive_touch出现异常。 HOT 1
- Compiling error HOT 4
- Open is not clickable "nulled"
- Can't run example app HOT 15
- inactive button HOT 1
- Determine whether the current thread is a float ? HOT 12
- In release mode, an error occurs while using `non-main` entry HOT 4
- Can not work fine with some plugin which calling dart from Android. HOT 2
- Error in debug mode and no response to anything HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_floatwing.