Flutter : Everything you want to know about GestureDetector

Although Flutter includes a handful of button implementations, such as: RaisedButton, IconButton , FlatButton, and CupertinoButton, you may want to create a custom button with your own style and shape. In that case you have to respond to user gestures. For that, the GestureDetector widget allows you to listen for, and respond to, gestures in Flutter including, for example, taps, drags…