原文:flutter报错:type 'future' is not a subtype of type '()=>void'

按钮的onpressed事件: onpressed: saveData 改成 onpressed: saveData 直接传递函数名给onpressed完事了。 ...

2021-01-06 17:44 0 404 推荐指数:

查看详情

Dart & data type(static / dynamic)

Dart & data type(static / dynamic) 🎯 Darts 飞镖 标枪 javelin/darts type https://dartpad.dartlang.org/ live demo https ...

Wed Jul 08 00:49:00 CST 2020 6 285
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM