createDefaultBuilders static method

Map<SlotType, SlotBuilder> createDefaultBuilders(
  1. SlotBuildContext ctx
)

创建内置插槽构建器映射。

Creates the built-in slot content builder map.

Implementation

static Map<SlotType, SlotBuilder> createDefaultBuilders(
  SlotBuildContext ctx,
) {
  return {
    SlotType.playerSurface: (w, h) => buildPlayerSurfaceSlot(ctx, w, h),
    SlotType.coverImage: (w, h) => buildCoverImageSlot(ctx, w, h),
    SlotType.playControl: (w, h) => buildPlayControlSlot(ctx, w, h),
    SlotType.topBar: (w, h) => buildTopBarSlot(ctx, w, h),
    SlotType.bottomBar: (w, h) => buildBottomBarSlot(ctx, w, h),
    SlotType.seekThumbnail: (w, h) => buildSeekThumbnailSlot(ctx, w, h),
    SlotType.centerDisplay: (w, h) => buildCenterDisplaySlot(ctx, w, h),
    SlotType.playState: (w, h) => buildPlayStateSlot(ctx, w, h),
    SlotType.settingMenu: (w, h) => buildSettingMenuSlot(ctx, w, h),
    SlotType.subtitle: (w, h) => buildSubtitleSlot(ctx, w, h),
  };
}