mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: select group sheet
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user