Skip to content

Commit

Permalink
Expand material and gesture links (cfug#539)
Browse files Browse the repository at this point in the history
* Expand material and gesture links

Fixes flutter/flutter#8369

* update API

* elevation now a double (cfug#538) (cfug#540)
  • Loading branch information
sethladd authored May 3, 2017
1 parent e227235 commit 0806324
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gestures.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ lifecycle of the gesture (e.g., drag start, drag update, and drag end):
To listen to gestures from the widgets layer, use a
[`GestureDetector`](https://docs.flutter.io/flutter/widgets/GestureDetector-class.html).

If you're using Material widgets, instead of using a gesture detector
directly, consider using an
[`InkWell`](https://docs.flutter.io/flutter/material/InkWell-class.html)
to listen to taps, and a
If you're using Material widgets, many of those widgets already respond
to taps or gestures.
For example,
[IconButton](https://docs.flutter.io/flutter/material/IconButton-class.html) and
[FlatButton](https://docs.flutter.io/flutter/material/FlatButton-class.html)
respond to presses (taps), and
[`ListView`](https://docs.flutter.io/flutter/widgets/ListView-class.html)
to listen to swipes to trigger scrolling.
responded to swipes to trigger scrolling.
If you aren't using those widgets, but you want the "ink splash" effect on a tap,
you can use
[`InkWell`](https://docs.flutter.io/flutter/material/InkWell-class.html).

## Gesture disambiguation

Expand Down

0 comments on commit 0806324

Please sign in to comment.