showSettingPanel static method

Future<void> showSettingPanel({
  1. required BuildContext context,
  2. required AliPlayerWidgetController controller,
  3. required SceneType sceneType,
  4. required Map<SlotType, Set<String>>? hiddenSlotElements,
})

显示设置面板(自动根据 orientation 选择横竖屏样式)

Shows the settings panel, automatically selecting portrait or landscape style based on the current orientation.

Implementation

static Future<void> showSettingPanel({
  required BuildContext context,
  required AliPlayerWidgetController controller,
  required SceneType sceneType,
  required Map<SlotType, Set<String>>? hiddenSlotElements,
}) {
  final orientation = MediaQuery.of(context).orientation;
  if (orientation == Orientation.portrait) {
    return _showPortraitPanel(
      context: context,
      controller: controller,
      sceneType: sceneType,
      hiddenSlotElements: hiddenSlotElements,
    );
  } else {
    return _showLandscapePanel(
      context: context,
      controller: controller,
      sceneType: sceneType,
      hiddenSlotElements: hiddenSlotElements,
    );
  }
}