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

Can we add a sensitivity option for showOnShake #6

Closed
saad-palapa opened this issue Jan 24, 2023 · 1 comment
Closed

Can we add a sensitivity option for showOnShake #6

saad-palapa opened this issue Jan 24, 2023 · 1 comment
Assignees
Labels
T: Feature Type: :tada: New Features

Comments

@saad-palapa
Copy link

The "showOnShake" feature is too sensitive and often triggers when I don't want it to.

Can we make it less sensitive or let us define shake sensitivity?

@saad-palapa saad-palapa added the T: Feature Type: :tada: New Features label Jan 24, 2023
@JonasWanke JonasWanke self-assigned this Jan 24, 2023
@JonasWanke
Copy link
Owner

In the new version v0.2.6, you can now pass the parameter createShakeDetector, allowing you to customize everything about the ShakeDetector:

builder: DebugOverlay.builder(
  showOnShake: true,
  createShakeDetector: (onPhoneShake) => ShakeDetector.waitForStart(
    onPhoneShake: onPhoneShake,
    // Adjust the other parameters to your liking
  ),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Feature Type: :tada: New Features
Projects
None yet
Development

No branches or pull requests

2 participants