showQuickPosterEasyShareBoard method

void showQuickPosterEasyShareBoard(
  1. BuildContext context, {
  2. GlobalKey<State<StatefulWidget>>? posterRepaintBoundaryGlobalKey,
  3. bool showCopyLink = false,
  4. String? bizId,
  5. required int bizType,
  6. String? title,
  7. String? description,
  8. WeChatImage? thumbnailImage,
})

弹出常见的分享面板(+海报根据key快捷获取)

Implementation

void showQuickPosterEasyShareBoard(
  BuildContext context, {
  GlobalKey? posterRepaintBoundaryGlobalKey,
  bool showCopyLink = false, // 是否显示分享复制链接的入口

  String? bizId,
  required int bizType, // 请使用 AppShareBizType
  String? title,
  String? description,
  WeChatImage? thumbnailImage,
}) {
  showEasyShareBoard(
    context,
    posterHandle: posterRepaintBoundaryGlobalKey == null
        ? null
        : () {
            PosterShareUtil.getAndSaveScreensShot(
              context,
              screenRepaintBoundaryGlobalKey: posterRepaintBoundaryGlobalKey,
            ).then((value) {
              Navigator.pop(context);
            });
          },
    showCopyLink: showCopyLink,
    bizId: bizId,
    bizType: bizType,
    title: title,
    description: description,
    thumbnailImage: thumbnailImage,
  );
}