NativeVideoPlayerSubtitleStyle constructor
const
NativeVideoPlayerSubtitleStyle({
- double fontSize = 16,
- FontWeight fontWeight = FontWeight.w500,
- FontStyle fontStyle = FontStyle.normal,
- String? fontFamily,
- double? lineHeight,
- Color textColor = const Color(0xFFFFFFFF),
- Color backgroundColor = const Color(0xB3000000),
- Color? outlineColor,
- double outlineWidth = 0,
- Alignment alignment = Alignment.bottomCenter,
- EdgeInsets padding = const EdgeInsets.only(bottom: 24, left: 16, right: 16),
- TextAlign textAlign = TextAlign.center,
- double? fullscreenLandscapeFontSize,
- FontWeight? fullscreenLandscapeFontWeight,
- double? fullscreenLandscapeLineHeight,
- double embeddedTextScale = 1.0,
Implementation
const NativeVideoPlayerSubtitleStyle({
this.fontSize = 16,
this.fontWeight = FontWeight.w500,
this.fontStyle = FontStyle.normal,
this.fontFamily,
this.lineHeight,
this.textColor = const Color(0xFFFFFFFF),
this.backgroundColor = const Color(0xB3000000),
this.outlineColor,
this.outlineWidth = 0,
this.alignment = Alignment.bottomCenter,
this.padding = const EdgeInsets.only(bottom: 24, left: 16, right: 16),
this.textAlign = TextAlign.center,
this.fullscreenLandscapeFontSize,
this.fullscreenLandscapeFontWeight,
this.fullscreenLandscapeLineHeight,
this.embeddedTextScale = 1.0,
});