Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4d2ddb91
Unverified
Commit
4d2ddb91
authored
Jun 24, 2020
by
Kate Lovett
Committed by
GitHub
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc Updates (#60222)
parent
d9902a54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
scroll_physics.dart
packages/flutter/lib/src/widgets/scroll_physics.dart
+13
-0
sliver_fill.dart
packages/flutter/lib/src/widgets/sliver_fill.dart
+8
-2
No files found.
packages/flutter/lib/src/widgets/scroll_physics.dart
View file @
4d2ddb91
...
...
@@ -448,12 +448,25 @@ class RangeMaintainingScrollPhysics extends ScrollPhysics {
///
/// This is the behavior typically seen on iOS.
///
/// [BouncingScrollPhysics] by itself will not create an overscroll effect if
/// the contents of the scroll view do not extend beyond the size of the
/// viewport. To create the overscroll and bounce effect regardless of the
/// length of your scroll view, combine with [AlwaysScrollableScrollPhysics].
///
/// {@tool snippet}
/// ```dart
/// BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics())
/// ```
/// (@end-tool}
///
/// See also:
///
/// * [ScrollConfiguration], which uses this to provide the default
/// scroll behavior on iOS.
/// * [ClampingScrollPhysics], which is the analogous physics for Android's
/// clamping behavior.
/// * [ScrollPhysics], for more examples of combining [ScrollPhysics] objects
/// of different types to get the desired scroll physics.
class
BouncingScrollPhysics
extends
ScrollPhysics
{
/// Creates scroll physics that bounce back from the edge.
const
BouncingScrollPhysics
({
ScrollPhysics
parent
})
:
super
(
parent:
parent
);
...
...
packages/flutter/lib/src/widgets/sliver_fill.dart
View file @
4d2ddb91
...
...
@@ -188,7 +188,10 @@ class _RenderSliverFractionalPadding extends RenderSliverEdgeInsetsPadding {
/// The [hasScrollBody] flag indicates whether the sliver's child has a
/// scrollable body. This value is never null, and defaults to true. A common
/// example of this use is a [NestedScrollView]. In this case, the sliver will
/// size its child to fill the maximum available extent.
/// size its child to fill the maximum available extent. [SliverFillRemaining]
/// will not constrain the scrollable area, as it could potentially have an
/// infinite depth. This is also true for use cases such as a [ScrollView] when
/// [ScrollView.shrinkwrap] is true.
///
/// ### When [SliverFillRemaining] does not have a scrollable child
///
...
...
@@ -347,7 +350,10 @@ class _RenderSliverFractionalPadding extends RenderSliverEdgeInsetsPadding {
/// // fillOverscroll only changes the behavior of your layout when applied
/// // to Scrollables that allow for overscroll. BouncingScrollPhysics are
/// // one example, which are provided by default on the iOS platform.
/// physics: BouncingScrollPhysics(),
/// // BouncingScrollPhysics is combined with AlwaysScrollableScrollPhysics
/// // to allow for the overscroll, regardless of the depth of the
/// // scrollable.
/// physics: BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),
/// slivers: <Widget>[
/// SliverToBoxAdapter(
/// child: Container(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment