当芯片被选中时,如何将芯片放入TextField?
我正在尝试使用芯片作为过滤Firestore数据的一种方式。
每个芯片将有一个单独的查询,例如:
Stream<QuerySnapshot> getName(BuildContext context) async* {
final uid = await TheProvider.of(context).auth.getCurrentUID();
yield* FirebaseFirestore.instance
.collection("userData")
.doc(uid)
.collection("Contacts")
.where('searchIndex', arrayContains: searchString)
.snapshots();
}我刚刚创建了这张图片,以便更好地解释我试图实现的目标。

发布于 2021-02-04 05:41:30
使用前缀小部件而不是Chip。
https://stackoverflow.com/questions/65924330
复制相似问题