英文:
gesture_detector_builder.dart is showing many errors suddenly in flutter run
问题
我在“flutter run”时遇到了这些错误。
如果可以的话,请帮助我。我甚至重置了我的笔记本电脑来解决这些错误,但没有成功。我已经尝试了flutter run、flutter clean和所有可能的方式。
英文:
I am getting these errors while "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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论