Skip to content

Commit

Permalink
fix: play and pause on tap desktop #153
Browse files Browse the repository at this point in the history
  • Loading branch information
jdk-21 committed Jan 19, 2025
1 parent fbf3e3c commit eb4f4c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/screens/offline_player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ class _PlayerSreenState extends ConsumerState<OfflinePlayerScreen> {
seekBarPositionColor:
Theme.of(context).colorScheme.onPrimary,
seekBarThumbColor: Theme.of(context).colorScheme.primary,
playAndPauseOnTap: true,
),
fullscreen: MaterialDesktopVideoControlsThemeData(
topButtonBar: getTopButtonBarThemeData(context),
bottomButtonBar: getBottomButtonBarThemeData(context),
seekBarPositionColor:
Theme.of(context).colorScheme.onPrimary,
seekBarThumbColor: Theme.of(context).colorScheme.primary,
playAndPauseOnTap: true,
),
child: Video(
key: key,
Expand Down
2 changes: 2 additions & 0 deletions lib/screens/player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ class _PlayerSreenState extends ConsumerState<PlayerScreen> {
seekBarPositionColor:
Theme.of(context).colorScheme.onPrimary,
seekBarThumbColor: Theme.of(context).colorScheme.primary,
playAndPauseOnTap: true,
),
fullscreen: MaterialDesktopVideoControlsThemeData(
topButtonBar: getTopButtonBarThemeData(context),
Expand All @@ -357,6 +358,7 @@ class _PlayerSreenState extends ConsumerState<PlayerScreen> {
seekBarPositionColor:
Theme.of(context).colorScheme.onPrimary,
seekBarThumbColor: Theme.of(context).colorScheme.primary,
playAndPauseOnTap: true,
),
child: Video(
key: key,
Expand Down

0 comments on commit eb4f4c0

Please sign in to comment.