通常,我会将键: ValueKey放在一个颤振元素中,我想在测试用例中找到这个元素,但是这个特定元素已经有了一个globalKey。那么,我应该使用什么来查找元素中使用的全局键呢?值键
在测试用例=> final nameField = find.byValueKey('nameField')中
final LabeledGlobalKey
如果我在ReorderableListView Builder中使用一个提取的小部件,它会显示这个错误Every item of ReorderableListView must have a key,但是当我在构建器中使用它作为方法时,它工作得很好。;},Widget MethodList(User user) => ListTile( title: Text(us