Commit 6cd552fe authored by Adam Barth's avatar Adam Barth Committed by GitHub

Add a couple dartdocs (#8841)

parent 60bb5d43
...@@ -27,6 +27,7 @@ export 'scroll_position.dart' show ScrollPhysics; ...@@ -27,6 +27,7 @@ export 'scroll_position.dart' show ScrollPhysics;
/// * [ClampingScrollPhysics], which is the analogous physics for Android's /// * [ClampingScrollPhysics], which is the analogous physics for Android's
/// clamping behavior. /// clamping behavior.
class BouncingScrollPhysics extends ScrollPhysics { class BouncingScrollPhysics extends ScrollPhysics {
/// Creates scroll physics that bounce back from the edge.
const BouncingScrollPhysics({ ScrollPhysics parent }) : super(parent); const BouncingScrollPhysics({ ScrollPhysics parent }) : super(parent);
@override @override
...@@ -97,6 +98,8 @@ class BouncingScrollPhysics extends ScrollPhysics { ...@@ -97,6 +98,8 @@ class BouncingScrollPhysics extends ScrollPhysics {
/// provide the glowing effect that is usually found with this clamping effect /// provide the glowing effect that is usually found with this clamping effect
/// on Android. /// on Android.
class ClampingScrollPhysics extends ScrollPhysics { class ClampingScrollPhysics extends ScrollPhysics {
/// Creates scroll physics that prevent the scroll offset from exceeding the
/// bounds of the content..
const ClampingScrollPhysics({ ScrollPhysics parent }) : super(parent); const ClampingScrollPhysics({ ScrollPhysics parent }) : super(parent);
@override @override
...@@ -158,6 +161,7 @@ class ClampingScrollPhysics extends ScrollPhysics { ...@@ -158,6 +161,7 @@ class ClampingScrollPhysics extends ScrollPhysics {
/// * [ClampingScrollPhysics], which provides the clamping overscroll behavior /// * [ClampingScrollPhysics], which provides the clamping overscroll behavior
/// found on Android. /// found on Android.
class AlwaysScrollableScrollPhysics extends ScrollPhysics { class AlwaysScrollableScrollPhysics extends ScrollPhysics {
/// Creates scroll physics that always lets the user scroll.
const AlwaysScrollableScrollPhysics({ ScrollPhysics parent }) : super(parent); const AlwaysScrollableScrollPhysics({ ScrollPhysics parent }) : super(parent);
@override @override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment