我正在从事扑动项目。我使用 singleChildScrollView 和 listView 进行滚动。但是当我想在应用程序中的任何屏幕中滚动时,我会遇到以下错误:
W/HiTouch_PressGestureDetector(20161): Touch pointer move a lot. The moving distance of X
is:11.0, limit is:60The moving distance of Y is:69.0, limit is:60
Run Code Online (Sandbox Code Playgroud)
这会阻止用户在应用程序上平滑滚动,即使在发布的版本上也是如此。
我不知道这个错误的具体原因是什么。作为附加信息,我在我的应用程序中使用 flutter_unity、syncfusion_flutter_charts 包。
请你帮助我好吗?提前致谢
我正在做一个颤振项目。它在 android 模拟器上完美运行,但是当我想作为 Web 应用程序运行时,我遇到了这个问题:
Launching lib\main.dart on Chrome in debug mode...
Finished with error: Failed to bind web development server:
SocketException: Failed to create server socket (OS Error: Failed to start accept), address =
localhost, port = 5403
Run Code Online (Sandbox Code Playgroud)
我试图运行另一个简单的项目,但我遇到了同样的错误。我按照flutter官方文档做了每一步。这是我的颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel beta, v1.17.0, on Microsoft Windows [Version 10.0.18363.778], locale en-US)
[?] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc2)
[?] Chrome - develop for the …Run Code Online (Sandbox Code Playgroud) 我正在 Flutter 中开发一个应用程序。我尝试在应用程序中使用 Provider 但遇到了这个错误:
Tried to listen to a value exposed with provider, from outside of the widget tree.
E/flutter ( 2850):
E/flutter ( 2850): This is likely caused by an event handler (like a button's onPressed) that called
E/flutter ( 2850): Provider.of without passing `listen: false`.
E/flutter ( 2850):
E/flutter ( 2850): To fix, write:
E/flutter ( 2850): Provider.of<Complexes>(context, listen: false);
E/flutter ( 2850):
E/flutter ( 2850): It is unsupported because may pointlessly rebuild the widget associated to …Run Code Online (Sandbox Code Playgroud)