jiusanzhou / flutter_floatwing

A Flutter plugin that makes it easier to make floating/overlay window for Android with pure Flutter. 一个可以用纯粹的Flutter来开发Android浮动窗口的插件。
Other
169 stars 28 forks source link

Error in debug mode and no response to anything #9

Open brianoh opened 2 years ago

brianoh commented 2 years ago

../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_floatwing-0.2.0/lib/src/provider.dart:143:30: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

Screen shows a scrollable windows, but appears to not respond to anything. flutter_01

Flutter 3.0.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 676cefaaff (13 days ago) • 2022-06-22 11:34:49 -0700 Engine • revision ffe7b86a1e Tools • Dart 2.17.5 • DevTools 2.12.2

Flutter Doctor: all ok

jiusanzhou commented 2 years ago

Hi @brianoh Thank you for your attention. If the open button is disable, that means the window engine have not created. In most case reason cause this problem is that the permission don't grated, and the service start failed. Please see if issue #3 can help you. Also you can try to download this repo and run the example app to see if it works.

BTW the ? null warning don't matter.

I hope the information can help you. Thank you.