Skip to main content

PSThreadSettingPermission

Ví dụ

class ThreadSettingPermissionPage extends StatelessWidget {
const ThreadSettingPermissionPage({
super.key,
required this.settingPermissionExtra,
});

final ThreadSettingPermissionExtra settingPermissionExtra;

@override
Widget build(BuildContext context) {
return PSThreadSettingPermission(
isViewMemberSetting: settingPermissionExtra.isViewMemberSetting,
threadId: settingPermissionExtra.threadId,
onBackPress: () {
context.pop();
},
);
}
}

Các thành phần

class ThreadSettingPermissionExtra {
final String threadId;
final bool isViewMemberSetting;

ThreadSettingPermissionExtra({
required this.threadId,
required this.isViewMemberSetting,
});
}
TênMô tảBắt buộc
threadIdTham số truyền vào threadId hiện tại
isViewMemberSettingTham số truyền vào xác định hiển thị Member settings hay Admin settings