我不能在dialogContent中使用setState函数,我得到了这个错误: The method 'setState' isn't defined for the class 'CustomDialog' 在这里我使用了setState() Row( crossAxisAlignment: CrossAxisAlignment.center,
chil
我正在做Google Lab example中的firestore。我想要发生的是将_buildList()和_buildListItem()函数窗口小部件转换成包含参数的StatelessWidget,因为我写了一篇文章,说拆分成函数窗口小部件是性能反模式。snapshot.hasData) return LinearProgressIndicator();
// I want StatelessWidget not function widgetbuildList(