Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added customizable timer to hide controls #626

Merged
merged 5 commits into from
Apr 13, 2022
Merged

Added customizable timer to hide controls #626

merged 5 commits into from
Apr 13, 2022

Conversation

BuginRug
Copy link
Contributor

The time interval without user interactions after which the controls are hidden is now customizable.
Negative time intervals are ignored, defaulting to a 3 seconds timer. closes #595

);
}

static const defaultTimer = Duration(seconds: 3);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this to defaultHideControlsTimer.

@@ -487,6 +492,9 @@ class ChewieController extends ChangeNotifier {
/// Defines if push/pop navigations use the rootNavigator
final bool useRootNavigator;

/// Define the time interval before the video controls are hidden
Copy link
Collaborator

@diegotori diegotori Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with.

/// Defines the [Duration] before the video controls are hidden. By default, this is set to three seconds.

@diegotori
Copy link
Collaborator

LGTM.

@diegotori diegotori merged commit b75475c into fluttercommunity:master Apr 13, 2022
@BuginRug BuginRug deleted the feature/hideControlsTimer branch April 13, 2022 15:49
diegotori added a commit that referenced this pull request Apr 14, 2022
codenameakshay pushed a commit to qoohoo-app/chewie that referenced this pull request Aug 29, 2022
lg8294 added a commit to lg8294/chewie that referenced this pull request Sep 22, 2022
* commit '3948d23733638d8a58ea5ff065abfe96934d2373': (110 commits)
  Version 1.3.4. Addresses PRs fluttercommunity#623 and fluttercommunity#646.
  Update pubspec.yaml
  version updates
  fix: change video type
  fix: format and migration artifacts
  fix: apply diegotori suggestion
  feat: added support for apple and desktop version
  feat: Make progressIndicatorDelay a Duration
  fix: simplify assignation
  fix: name
  fix: let the android player buffer before seeking once more
  fix: removed old code
  fix: lint
  feat: added method to set progress delay
  feat: added example debug
  feat: add a delay before displaying progress indicator
  Version 1.3.3. Adds PR fluttercommunity#634.
  Update pubspec.yaml
  chore: remove unused dependency
  Version 1.3.2. Adds PR fluttercommunity#626.
  ...

# Conflicts:
#	example/ios/Runner.xcodeproj/project.pbxproj
#	example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
#	example/ios/Runner/Info.plist
#	example/lib/main.dart
#	example/pubspec.yaml
#	lib/src/chewie_player.dart
#	pubspec.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow durations for the controls hide timer
2 participants