ngu2008 / wanandroid

用Flutter开发的跨平台项目,完美运行在Android和iOS上,Material简洁风格,包括启动页、引导页、注册、登录、首页、体系、公众号、导航、项目,还有漂亮的妹子图库,运行极度流畅,结构清晰,代码规范,值得拥有
486 stars 104 forks source link

下载了项目,编译不过去,刚接触flutter不知道咋办 #18

Open xhcui2008 opened 4 years ago

xhcui2008 commented 4 years ago

`Compiler message: lib/ui/drawer/common_website.dart:77:35: Error: A function expression can't have a name. _scrollController.addListener(VoidCallback() { ^^^^^^^^^^^^ /C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/photo_view-0.2.5/lib/photo_view.dart:279:24: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.

FAILURE: Build failed with an exception.

BUILD FAILED in 9s Finished with error: Gradle task assembleDebug failed with exit code 1 ` 是否是环境不兼容的问题呢,请问怎么解决比较好呢

AsyncHope commented 3 years ago

我也遇到这问题,你解决了吗