gesture_detector_builder.dart 在 flutter run 中突然显示许多错误。

huangapple go评论74阅读模式
英文:

gesture_detector_builder.dart is showing many errors suddenly in flutter run

问题

我在“flutter run”时遇到了这些错误。

gesture_detector_builder.dart 在 flutter run 中突然显示许多错误。

如果可以的话,请帮助我。我甚至重置了我的笔记本电脑来解决这些错误,但没有成功。我已经尝试了flutter run、flutter clean和所有可能的方式。

英文:

I am getting these errors while "flutter run".

gesture_detector_builder.dart 在 flutter run 中突然显示许多错误。

please help me if you can. I have even reset my laptop to solve this errors but could not. I have done flutter run, flutter clean ad all possible way.

答案1

得分: 1

The error you share in the image tells what is the problem. You are trying to assign a function that has the incorrect types to what the parameter expects.

void Function(TapDownDetails) is different than void Function(TapDragDownDetails)?.

You should assign to the parameter a function with the same argument type of TapDragDownDetails and that function should also be nullable.

英文:

The error you share in the image tells what is the problem. You are trying to assign a function that has the incorrect types to what the parameter expects.

void Function(TapDownDetails) is different than void Function(TapDragDownDetails)?.

You should assign to the parameter a function with same argument type of TapDragDownDetails and that function should also be nullable.

答案2

得分: 0

Updating flutter_html 到预发行版对我有用:

flutter_html: ^3.0.0-alpha.6

英文:

Updating flutter_html to prerelease worked for me:

flutter_html: ^3.0.0-alpha.6

huangapple
  • 本文由 发表于 2023年5月14日 22:00:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76247863.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定