fix: select group sheet

This commit is contained in:
My-Responsitories
2025-03-29 20:30:19 +08:00
parent 82f9f48a8e
commit 6539457f83
3 changed files with 4 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ class FollowItem extends StatelessWidget {
mid: item.mid,
isFollow: item.attribute != -1,
callback: callback,
followStatus: {'special': item.special, 'tag': item.tag},
// followStatus: {'special': item.special, 'tag': item.tag},
);
},
style: FilledButton.styleFrom(

View File

@@ -64,7 +64,7 @@ class _GroupPanelState extends State<GroupPanel> {
final res = await MemberHttp.addUsers(widget.mid, tagids);
SmartDialog.showToast(res['msg']);
if (res['status']) {
Get.back(result: tagidList?.contains(-10) == true);
Get.back(result: tagidList);
}
}

View File

@@ -954,7 +954,7 @@ class Utils {
dense: true,
onTap: () async {
Get.back();
var result = await showModalBottomSheet<bool>(
var result = await showModalBottomSheet<List?>(
context: context,
useSafeArea: true,
isScrollControlled: true,
@@ -979,6 +979,7 @@ class Utils {
);
},
);
followStatus!['tag'] = result;
if (result != null) {
callback?.call(2);
}