VideoSingleCardConfig class

小视频单卡片配置 基于官方SDK的DPWidgetVideoSingleCardParams(Android)和LCDVideoSingleCardConfig(iOS)

Constructors

VideoSingleCardConfig({String? scene, bool? hidePlay, bool? hideTitle, bool? showTitle, bool? hideBottomInfo, int? coverHeight, int? coverWidth, String? componentPosition, int? reportTopPadding, int? cardWidth, int? cardHeight, bool? showUserName, bool? showDuration, bool? showViewCount, bool? showLikeCount, bool? showCommentCount, bool? showShareButton, bool? showAvatar, bool? showFollowButton, bool? autoPlay, bool? loopPlay, bool? mutePlay, int? preloadCount, int? cacheSize, int? networkType, String? backgroundColor, String? titleColor, String? userNameColor, String? playButtonColor, String? statsColor, String? borderColor, int? borderWidth, int? cornerRadius, int? padding, int? margin, bool? enableShadow, String? shadowColor, int? shadowOffsetX, int? shadowOffsetY, int? shadowBlurRadius, int? fontSize, bool? fontBold, int? titleMaxLines, int? userNameMaxLength, int? playButtonSize, int? avatarSize, int? followButtonWidth, int? followButtonHeight, int? actionButtonSpacing, int? bottomInfoHeight, int? topInfoHeight})
const
VideoSingleCardConfig.fromMap(Map<String, dynamic> map)
从Map创建配置
factory

Properties

actionButtonSpacing int?
操作按钮间距
final
autoPlay bool?
是否支持自动播放
final
avatarSize int?
头像大小
final
backgroundColor String?
背景颜色
final
borderColor String?
边框颜色
final
borderWidth int?
边框宽度
final
bottomInfoHeight int?
底部信息区域高度
final
cacheSize int?
缓存大小限制(MB)
final
cardHeight int?
卡片高度
final
cardWidth int?
卡片宽度
final
componentPosition String?
组件位置:'top'-顶部,'bottom'-底部,'center'-居中
final
cornerRadius int?
圆角半径
final
coverHeight int?
封面图片高度
final
coverWidth int?
封面图片宽度
final
enableShadow bool?
阴影效果
final
followButtonHeight int?
关注按钮高度
final
followButtonWidth int?
关注按钮宽度
final
fontBold bool?
文字是否加粗
final
fontSize int?
文字字体大小
final
hashCode int
The hash code for this object.
no setterinherited
hideBottomInfo bool?
是否隐藏底部信息
final
hidePlay bool?
是否隐藏播放按钮
final
hideTitle bool?
是否隐藏标题
final
loopPlay bool?
是否循环播放
final
margin int?
外边距
final
mutePlay bool?
是否静音播放
final
networkType int?
网络状态:1-WiFi,2-移动网络,3-所有网络
final
padding int?
内边距
final
playButtonColor String?
播放按钮颜色
final
playButtonSize int?
播放按钮大小
final
preloadCount int?
预加载数量
final
reportTopPadding int?
举报按钮距顶部间距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scene String?
场景标识
final
shadowBlurRadius int?
阴影模糊半径
final
shadowColor String?
阴影颜色
final
shadowOffsetX int?
阴影偏移X
final
shadowOffsetY int?
阴影偏移Y
final
showAvatar bool?
是否显示头像
final
showCommentCount bool?
是否显示评论数
final
showDuration bool?
是否显示播放时长
final
showFollowButton bool?
是否显示关注按钮
final
showLikeCount bool?
是否显示点赞数
final
showShareButton bool?
是否显示分享按钮
final
showTitle bool?
是否显示标题(若设置则优先于 hideTitle
final
showUserName bool?
是否显示用户名
final
showViewCount bool?
是否显示观看次数
final
statsColor String?
统计信息颜色
final
titleColor String?
标题颜色
final
titleMaxLines int?
标题最大行数
final
topInfoHeight int?
顶部信息区域高度
final
userNameColor String?
用户名颜色
final
userNameMaxLength int?
用户名最大长度
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
转换为Map - 只包含非null的参数
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited