showGuardList static method
dynamic
showGuardList(
- BuildContext context,
- String liveId,
- String anchorId, {
- OnUserPressed? onTap,
守护列表 liveId:直播间ID anchorId:主播ID
Implementation
static showGuardList(BuildContext context, String liveId, String anchorId, {OnUserPressed? onTap}) {
JJDialogController(
isScrollControlled: true,
barrierColor: Colors.transparent,
child: JJGuardList(
showOpenGuard: UserManager().getUserId() != anchorId,
liveId: liveId,
height: 550,
padding: const EdgeInsets.symmetric(horizontal: 16),
clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.only(topLeft: Radius.circular(15), topRight: Radius.circular(15))),
onTap: (userId) {
Navigator.pop(context);
///打开用户卡片
LiveDialogUtils.showBusinessCardDialog(context: context, userId: userId, anchorUserId: anchorId);
}),
).show(context);
}