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, mid: item.mid,
isFollow: item.attribute != -1, isFollow: item.attribute != -1,
callback: callback, callback: callback,
followStatus: {'special': item.special, 'tag': item.tag}, // followStatus: {'special': item.special, 'tag': item.tag},
); );
}, },
style: FilledButton.styleFrom( style: FilledButton.styleFrom(

View File

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

View File

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