VideoCardConfig class

小视频卡片配置 基于官方SDK的DPWidgetVideoCardParams(Android)和LCDVideoCardConfig(iOS)

Constructors

VideoCardConfig({String? scene, String? cardType, int? cardWidth, int? cardHeight, int? coverWidth, int? coverHeight, bool? showTitle, bool? showUserName, bool? showPlayButton, bool? showDuration, bool? showViewCount, bool? showLikeCount, bool? showCommentCount, bool? showShareButton, 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})
const
VideoCardConfig.fromMap(Map<String, dynamic> map)
从Map创建配置
factory

Properties

autoPlay bool?
是否支持自动播放
final
backgroundColor String?
背景颜色
final
borderColor String?
边框颜色
final
borderWidth int?
边框宽度
final
cacheSize int?
缓存大小限制(MB)
final
cardHeight int?
卡片高度
final
cardType String?
卡片类型:'news'-信息流场景,'recommend'-推荐流场景,'search'-搜索场景
final
cardWidth int?
卡片宽度
final
cornerRadius int?
圆角半径
final
coverHeight int?
封面图片高度
final
coverWidth int?
封面图片宽度
final
enableShadow bool?
阴影效果
final
fontBold bool?
文字是否加粗
final
fontSize int?
文字字体大小
final
hashCode int
The hash code for this object.
no setterinherited
loopPlay bool?
是否循环播放
final
margin int?
外边距
final
mutePlay bool?
是否静音播放
final
networkType int?
网络状态:1-WiFi,2-移动网络,3-所有网络
final
padding int?
内边距
final
playButtonColor String?
播放按钮颜色
final
preloadCount 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
showCommentCount bool?
是否显示评论数
final
showDuration bool?
是否显示播放时长
final
showLikeCount bool?
是否显示点赞数
final
showPlayButton bool?
是否显示播放按钮
final
showShareButton bool?
是否显示分享按钮
final
showTitle bool?
是否显示标题
final
showUserName bool?
是否显示用户名
final
showViewCount bool?
是否显示观看次数
final
statsColor String?
统计信息颜色
final
titleColor String?
标题颜色
final
titleMaxLines 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