Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[webview_flutter] add scrollViewBounces settings - #1977

Closed
yinsee wants to merge 10 commits into
flutter-team-archive:masterfrom
yinsee:master
Closed

yinsee wants to merge 10 commits into
flutter-team-archive:masterfrom
yinsee:master

Conversation

@yinsee

@yinsee yinsee commented Aug 14, 2019 •

Copy link
Copy Markdown

Description

add scrollViewBounces settings to disable bounce effect on iOS.
flutter/flutter#57090

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@yinsee

yinsee commented Aug 14, 2019

Copy link
Copy Markdown
Author

@googlebot I signed it!

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@ened

ened commented Aug 14, 2019

Copy link
Copy Markdown
Contributor

@yinsee this may need a test in webview_flutter_test.dart, just like debuggingEnabled has.

@yinsee

yinsee commented Aug 14, 2019 •

Copy link
Copy Markdown
Author

@ened added test (and found a bug!)
thanks for the guidance. first timer.

@ened

ened commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

@yinsee could you try restarting the failed checks (click on Details -> retry, I think) so that we have it green?

@yinsee yinsee closed this Sep 30, 2019
@yinsee yinsee reopened this Sep 30, 2019
/// Controls whether WebView have bounce effect in iOS
///
/// By default `scrollViewBounces` is true.
final bool scrollViewBounces;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm wondering whether it makes sense to phrase this as a platform-agnostic API?
e.g I'd imagine that on Android an equivalent knob will control whether the overflow glow is showing or not (not sure whether the Android webview currently allows such control).

In that case maybe it makes sense to name this something like allowOverScroll ?

// no-op debugging is always enabled on iOS.
} else if ([key isEqualToString:@"scrollViewBounces"]) {
NSNumber* scrollViewBounces = settings[key];
_webView.scrollView.bounces = [scrollViewBounces boolValue];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm unfamiliar with this knob, do you know how does it play with the css overscroll-behavior parameter?

///
/// See also: [WebView.debuggingEnabled].
final bool debuggingEnabled;
final bool scrollViewBounces;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing Dartdoc

julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
…1977)

* [cloud_firestore] Endorse cloud_firestore_web.

This change makes `cloud_firestore_web` the official implementation of `cloud_firestore` for the Web target.

It also adds web support to the `example` app.

Co-authored-by: Amr Yousef <[email protected]>
@jamesdixon

Copy link
Copy Markdown

@amirh any update on this review?

cc: @yinsee

@stuartmorgan-g stuartmorgan-g added the p: webview_flutter Edits files for a webview_flutter plugin label Jan 29, 2021
@stuartmorgan-g

Copy link
Copy Markdown
Contributor

Thank you for your contribution. I'm going to close this PR for now since there are outstanding comments, just to get this off our PR review queue. Please don't hesitate to submit a new PR if you have the time to address the review comments. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants