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

Add backGestureDetectionStart parameter #14

Merged
merged 1 commit into from Jun 9, 2021

Conversation

zim32
Copy link
Contributor

@zim32 zim32 commented May 26, 2021

Closes: #13

Add ability to control the start position of gesture detection area.
Fix docs about backGestureDetectionWidth, because it does not to what is wriiten in the docs

Add ability to control the start position of gesture detection area. 
Fix docs about backGestureDetectionWidth, because it does not to what is wriiten in the docs
Comment on lines +47 to +49
/// If [canOnlySwipeFromEdge] is set to `true`, this value controls
/// width of gesture detection area
final double backGestureDetectionWidth;
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
/// If [canOnlySwipeFromEdge] is set to `true`, this value controls
/// width of gesture detection area
final double backGestureDetectionWidth;
/// If [canOnlySwipeFromEdge] is set to `true`, this value controls the width
/// of the gesture detection area.
///
/// For comparison, in [CupertinoPageRoute] this value is `20`.

///
/// In [CupertinoPageRoute], this value is `20`.
final double backGestureDetectionWidth;
final double backGestureDetectionStart;
Copy link
Owner

Choose a reason for hiding this comment

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

What do you think about renaming this to backGestureDetectionStartOffset? That might be more explicit and easier to understand without having to read the doc comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

backGestureDetectionStart looks fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I mean backGestureDetectionStartOffset
You should fix change

@JonasWanke JonasWanke merged commit ae6f072 into JonasWanke:master Jun 9, 2021
@JonasWanke
Copy link
Owner

This is now published as part of v0.2.2. Thanks for contributing!

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.

Issue with back button gesture on Nokia (maybe bug maybe feature)
2 participants