ZegoLayout.gallery constructor
ZegoLayout.gallery({
- EdgeInsetsGeometry margin = const EdgeInsets.all(2.0),
- bool addBorderRadiusAndSpacingBetweenView = true,
- bool showNewScreenSharingViewInFullscreenMode = true,
- 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,
);
}