SubtitleConfig constructor
const
SubtitleConfig({
- SubtitleStyleConfig styleConfig = const SubtitleStyleConfig(),
- EdgeInsets position = const EdgeInsets.only(),
- bool enableAnimation = false,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOut,
创建字幕完整配置。
Creates a complete subtitle configuration.
styleConfig字幕样式配置。 The subtitle style configuration.position字幕位置偏移。 The subtitle position offset.enableAnimation是否启用字幕切换动画。 Whether to enable subtitle switching animation.animationDuration字幕切换动画时长。 The duration of the subtitle switching animation.animationCurve字幕切换动画曲线。 The curve of the subtitle switching animation.
Implementation
const SubtitleConfig({
this.styleConfig = const SubtitleStyleConfig(),
this.position = const EdgeInsets.only(),
this.enableAnimation = false,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeInOut,
});