NativeVideoPlayerSubtitleStyle constructor

const NativeVideoPlayerSubtitleStyle({
  1. double fontSize = 16,
  2. FontWeight fontWeight = FontWeight.w500,
  3. FontStyle fontStyle = FontStyle.normal,
  4. String? fontFamily,
  5. double? lineHeight,
  6. Color textColor = const Color(0xFFFFFFFF),
  7. Color backgroundColor = const Color(0xB3000000),
  8. Color? outlineColor,
  9. double outlineWidth = 0,
  10. Alignment alignment = Alignment.bottomCenter,
  11. EdgeInsets padding = const EdgeInsets.only(bottom: 24, left: 16, right: 16),
  12. TextAlign textAlign = TextAlign.center,
  13. double? fullscreenLandscapeFontSize,
  14. FontWeight? fullscreenLandscapeFontWeight,
  15. double? fullscreenLandscapeLineHeight,
  16. 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,
});