为此,我使用InkWell,如下所示: mainAxisAlignment: MainAxisAlignment.spaceBetween,The following assertion was thrown building BlogTileWidget(dirty):
type 'Future<dynamic>' is not a subtype of type '() => v
我是Flutter的新手。我在构造函数中调用future方法时遇到了问题。我创建了一个方法,它返回一个依赖于所选项目的小部件类。但是我看到错误"type ' Future‘is not a subtype of type 'Widget'“如果我添加了void类型而不是Future类型,它将被执行一次来创建一个主体。return DataB(); if (selectedVa
当我尝试将buildProfileHeader()放入ListView的children中时,我得到了错误type Future<dynamic> is not a subtype of type Widget@override
return Scaffold( body: ListView(
childr