SenzuPlayerStyle constructor

SenzuPlayerStyle({
  1. SenzuProgressBarStyle? progressBarStyle,
  2. SenzuSubtitleStyle? subtitleStyle,
  3. SenzuCenterButtonStyle? centerButtonStyle,
  4. SenzuLanguage? senzuLanguage,
  5. Widget? thumbnail,
  6. Widget? bottomExtra,
  7. Widget? episodeWidget,
  8. Widget skipAdBuilder(
    1. Duration
    )?,
  9. VoidCallback? onPrevEpisode,
  10. VoidCallback? onNextEpisode,
  11. bool? hasPrevEpisode,
  12. bool? hasNextEpisode,
  13. AlignmentGeometry skipAdAlignment = Alignment.bottomRight,
  14. Duration transitions = const Duration(milliseconds: 400),
  15. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.bold),
  16. Widget? loading,
  17. Widget? buffering,
})

Implementation

SenzuPlayerStyle({
  SenzuProgressBarStyle? progressBarStyle,
  SenzuSubtitleStyle? subtitleStyle,
  SenzuCenterButtonStyle? centerButtonStyle,
  SenzuLanguage? senzuLanguage,
  this.thumbnail,
  this.bottomExtra,
  this.episodeWidget,
  this.skipAdBuilder,
  this.onPrevEpisode,
  this.onNextEpisode,
  // ── Episode navigation state ──────────────────────────────────────────
  // null = always enabled (backward compat)
  // false = disabled (dimmed, not tappable)
  // true = enabled
  this.hasPrevEpisode,
  this.hasNextEpisode,
  this.skipAdAlignment = Alignment.bottomRight,
  this.transitions = const Duration(milliseconds: 400),
  this.textStyle = const TextStyle(
    color: Colors.white,
    fontSize: 12,
    fontWeight: FontWeight.bold,
  ),
  Widget? loading,
  Widget? buffering,
}) : progressBarStyle = progressBarStyle ?? const SenzuProgressBarStyle(),
     senzuLanguage = senzuLanguage ?? const SenzuLanguage(),
     subtitleStyle = subtitleStyle ?? const SenzuSubtitleStyle(),
     centerButtonStyle = centerButtonStyle ?? SenzuCenterButtonStyle(),
     loading =
         loading ??
         const Center(
           child: CircularProgressIndicator(
             strokeWidth: 1.6,
             color: Colors.white,
           ),
         ),
     buffering =
         buffering ??
         const Center(
           child: CircularProgressIndicator(
             strokeWidth: 1.6,
             color: Colors.white,
           ),
         );