MovaTheme class

Externalised visual theme for the player overlay.

Colors are stored as raw ARGB int (not package:flutter/material.dart's Color) so that lib/src/core/** stays free of any Flutter import; the ui/ layer converts these ints to Color at the point of use.

播放器覆盖层的外置视觉主题。

颜色以原始 ARGB int 存储(而非 package:flutter/material.dart 的 Color),以保证 lib/src/core/** 不引入任何 Flutter 依赖;ui/ 层在 使用处再把这些 int 转换为 Color。

Constructors

MovaTheme({int iconColor = _foregroundColor, int textColor = _foregroundColor, int accentColor = 0xFFE53935, int timeshiftBadgeColor = 0xFF616161, int barGradientColor = 0x99000000, double titleFontSize = 14.0, double timeFontSize = 12.0, double captionFontSize = 10.0, double badgeFontSize = 11.0, double centerIconSize = 64.0, double progressHeight = 2.0, int? progressColor, int sheetBackgroundColor = 0xEE1A1A1A, double? bufferingSize, double? bufferingStrokeWidth, int? bufferingColor})
Creates a theme; defaults to the product's white-on-dark, red-accent look.
const

Properties

accentColor → int
ARGB color for accented elements (e.g. active progress, live badge).
final
badgeFontSize → double
Font size for the live badge text.
final
barGradientColor → int
ARGB color for the top/bottom gradient behind the control bars.
final
bufferingColor → int?
Buffering spinner ARGB color; null falls back to accentColor.
final
bufferingSize → double?
Buffering spinner diameter; null keeps the Material default.
final
bufferingStrokeWidth → double?
Buffering spinner stroke width; null keeps the Material default.
final
captionFontSize → double
Font size for small captions (e.g. fit-mode toast).
final
centerIconSize → double
Size of the large center icon (e.g. play/pause tap feedback).
final
hashCode → int
The hash code for this object.
no setteroverride
iconColor → int
ARGB color for icons.
final
progressColor → int?
进度条高亮与滑块的 ARGB 颜色;null 沿用宿主 SliderTheme。 示例:MovaTheme(progressColor: 0xFF00FF00)。
final
progressHeight → double
Height of the progress bar track.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sheetBackgroundColor → int
ARGB color for modal sheet backgrounds (e.g. the quality picker).
final
textColor → int
ARGB color for text.
final
timeFontSize → double
Font size for time labels (elapsed/duration).
final
timeshiftBadgeColor → int
ARGB color for the badge while the live stream is time-shifted (i.e. not at the live edge).
final
titleFontSize → double
Font size for the title text.
final

Methods

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.
override