DefaultSubtitleBuilder class

默认字幕构建器,使用 SubtitleStyleConfig 中的样式渲染字幕文本。

当 SubtitleConfig.enableAnimation 为 true 时, 使用 AnimatedSwitcher 实现字幕切换动画。

Default subtitle builder that renders subtitle text using styles from SubtitleStyleConfig.

When SubtitleConfig.enableAnimation is true, uses AnimatedSwitcher to animate subtitle transitions.

Implemented types

Constructors

DefaultSubtitleBuilder()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, Subtitle subtitle, SubtitleConfig config) → Widget
根据字幕数据和配置构建默认样式的字幕 Widget。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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