group users add scroll bar

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-09-20 17:47:33 +08:00
parent a2742caa87
commit 428bc9b419

View File

@ -148,16 +148,15 @@ class _MyGroupState extends State<MyGroup> {
Widget _buildUserContacts() {
return Obx(() {
return Column(
children: gFFI.groupModel.users
.where((p0) {
if (searchUserText.isNotEmpty) {
return p0.name.contains(searchUserText.value);
}
return true;
})
.map((e) => _buildUserItem(e))
.toList());
final items = gFFI.groupModel.users.where((p0) {
if (searchUserText.isNotEmpty) {
return p0.name.contains(searchUserText.value);
}
return true;
}).toList();
return ListView.builder(
itemCount: items.length,
itemBuilder: (context, index) => _buildUserItem(items[index]));
});
}