diff --git a/lib/mpv/player/player_native.dart b/lib/mpv/player/player_native.dart index 5a44b4c9..8870b00f 100644 --- a/lib/mpv/player/player_native.dart +++ b/lib/mpv/player/player_native.dart @@ -312,10 +312,7 @@ class PlayerNative implements Player { // Explicitly set SubtitleTrack.off so episode navigation can detect "subtitles off" selectedTrack = SubtitleTrack.off; } else { - selectedTrack = _state.tracks.subtitle.cast().firstWhere( - (t) => t?.id == id, - orElse: () => null, - ); + selectedTrack = _state.tracks.subtitle.cast().firstWhere((t) => t?.id == id, orElse: () => null); } _state = _state.copyWith(track: _state.track.copyWith(subtitle: selectedTrack)); diff --git a/lib/screens/main_screen.dart b/lib/screens/main_screen.dart index 5907bbab..489ba8cc 100644 --- a/lib/screens/main_screen.dart +++ b/lib/screens/main_screen.dart @@ -171,10 +171,7 @@ class _MainScreenState extends State with RouteAware { ], ), actions: [ - TextButton( - onPressed: () => Navigator.pop(dialogContext), - child: Text(t.common.later), - ), + TextButton(onPressed: () => Navigator.pop(dialogContext), child: Text(t.common.later)), TextButton( onPressed: () async { await UpdateService.skipVersion(updateInfo['latestVersion']); diff --git a/lib/screens/media_detail_screen.dart b/lib/screens/media_detail_screen.dart index 89682cba..e855d893 100644 --- a/lib/screens/media_detail_screen.dart +++ b/lib/screens/media_detail_screen.dart @@ -86,10 +86,7 @@ class _MediaDetailScreenState extends State with WatchStateAw if (metadata != null && mounted) { setState(() { - _fullMetadata = metadata.copyWith( - serverId: widget.metadata.serverId, - serverName: widget.metadata.serverName, - ); + _fullMetadata = metadata.copyWith(serverId: widget.metadata.serverId, serverName: widget.metadata.serverName); _onDeckEpisode = onDeckEpisode?.copyWith( serverId: widget.metadata.serverId, serverName: widget.metadata.serverName, @@ -103,10 +100,7 @@ class _MediaDetailScreenState extends State with WatchStateAw if (mounted) { setState(() { _seasons = seasons - .map((s) => s.copyWith( - serverId: widget.metadata.serverId, - serverName: widget.metadata.serverName, - )) + .map((s) => s.copyWith(serverId: widget.metadata.serverId, serverName: widget.metadata.serverName)) .toList(); }); } diff --git a/lib/services/discord_rpc_service.dart b/lib/services/discord_rpc_service.dart index d7f52ac7..ff6eb4a3 100644 --- a/lib/services/discord_rpc_service.dart +++ b/lib/services/discord_rpc_service.dart @@ -103,9 +103,7 @@ class DiscordRPCService { _currentMetadata = metadata; _currentClient = client; _playbackStartTime = DateTime.now(); - _mediaDuration = metadata.duration != null - ? Duration(milliseconds: metadata.duration!) - : null; + _mediaDuration = metadata.duration != null ? Duration(milliseconds: metadata.duration!) : null; _currentPosition = Duration.zero; _cachedThumbnailUrl = null; diff --git a/lib/services/macos_window_service.dart b/lib/services/macos_window_service.dart index f184012a..c301c866 100644 --- a/lib/services/macos_window_service.dart +++ b/lib/services/macos_window_service.dart @@ -52,9 +52,7 @@ class MacOSWindowService { if (!Platform.isMacOS) return; if (!_initialized) { - await _channel.invokeMethod('initialize', { - 'enableWindowDelegate': enableWindowDelegate, - }); + await _channel.invokeMethod('initialize', {'enableWindowDelegate': enableWindowDelegate}); _initialized = true; } @@ -80,8 +78,7 @@ class MacOSWindowService { // MARK: - Traffic Light Buttons /// Show or hide all traffic light buttons (close, miniaturize, zoom). - static Future setTrafficLightsVisible(bool visible) => - _invoke('setTrafficLightsVisible', {'visible': visible}); + static Future setTrafficLightsVisible(bool visible) => _invoke('setTrafficLightsVisible', {'visible': visible}); // MARK: - Fullscreen diff --git a/lib/widgets/hub_section.dart b/lib/widgets/hub_section.dart index 2e9b7519..f7218e40 100644 --- a/lib/widgets/hub_section.dart +++ b/lib/widgets/hub_section.dart @@ -231,12 +231,7 @@ class HubSectionState extends State { } Future _navigateToItem(dynamic item) async { - await navigateToMediaItem( - context, - item, - onRefresh: widget.onRefresh, - playDirectly: widget.isInContinueWatching, - ); + await navigateToMediaItem(context, item, onRefresh: widget.onRefresh, playDirectly: widget.isInContinueWatching); } void _navigateToHubDetail(BuildContext context) { diff --git a/lib/widgets/video_controls/video_controls.dart b/lib/widgets/video_controls/video_controls.dart index 6defda7c..f0076825 100644 --- a/lib/widgets/video_controls/video_controls.dart +++ b/lib/widgets/video_controls/video_controls.dart @@ -816,8 +816,7 @@ class _PlexVideoControlsState extends State with WindowListen // Debounce: ignore taps within 200ms of last skip action // This prevents double-taps from counting as two separate skips - if (_lastSkipActionTime != null && - now.difference(_lastSkipActionTime!).inMilliseconds < 200) { + if (_lastSkipActionTime != null && now.difference(_lastSkipActionTime!).inMilliseconds < 200) { return; } @@ -1039,20 +1038,11 @@ class _PlexVideoControlsState extends State with WindowListen child: Row( mainAxisSize: MainAxisSize.min, children: [ - AppIcon( - Symbols.fast_forward_rounded, - fill: 1, - color: Colors.white, - size: 16, - ), + AppIcon(Symbols.fast_forward_rounded, fill: 1, color: Colors.white, size: 16), const SizedBox(width: 4), const Text( '2x', - style: TextStyle( - color: Colors.white, - fontSize: 14, - fontWeight: FontWeight.bold, - ), + style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold), ), ], ), @@ -1536,12 +1526,7 @@ class _PlexVideoControlsState extends State with WindowListen ), ), // Speed indicator overlay for long-press 2x - if (_showSpeedIndicator) - Positioned.fill( - child: IgnorePointer( - child: _buildSpeedIndicator(), - ), - ), + if (_showSpeedIndicator) Positioned.fill(child: IgnorePointer(child: _buildSpeedIndicator())), // Skip intro/credits button if (_currentMarker != null) Positioned(