ZegoLayout.gallery constructor

ZegoLayout.gallery({
  1. EdgeInsetsGeometry margin = const EdgeInsets.all(2.0),
  2. bool addBorderRadiusAndSpacingBetweenView = true,
  3. bool showNewScreenSharingViewInFullscreenMode = true,
  4. ZegoShowFullscreenModeToggleButtonRules showScreenSharingFullscreenModeToggleButtonRules = ZegoShowFullscreenModeToggleButtonRules.showWhenScreenPressed,
})

Gallery Layout

Implementation

factory ZegoLayout.gallery({
  /// The margin of layout, the layout will display center
  /// so you can display your widgets around empty spaces
  EdgeInsetsGeometry margin = const EdgeInsets.all(2.0),

  /// whether to display rounded corners and spacing between views
  bool addBorderRadiusAndSpacingBetweenView = true,

  /// screen sharing configs
  bool showNewScreenSharingViewInFullscreenMode = true,

  /// screen sharing configs, display rule of full screen button
  ZegoShowFullscreenModeToggleButtonRules showScreenSharingFullscreenModeToggleButtonRules =
      ZegoShowFullscreenModeToggleButtonRules.showWhenScreenPressed,
}) {
  return ZegoLayoutGalleryConfig(
    margin: margin,
    addBorderRadiusAndSpacingBetweenView:
        addBorderRadiusAndSpacingBetweenView,
    showNewScreenSharingViewInFullscreenMode:
        showNewScreenSharingViewInFullscreenMode,
    showScreenSharingFullscreenModeToggleButtonRules:
        showScreenSharingFullscreenModeToggleButtonRules,
  );
}