© Rap Payne 2019
R. PayneBeginning App Development with Flutterhttps://doi.org/10.1007/978-1-4842-5181-2_5

5. Responding to Gestures

Rap Payne1 
(1)
Dallas, TX, USA
 

We’ve made great progress so far! You now know what Flutter is all about. You’re well-versed in how the development and debugging process works. You know why we use widgets and are pretty darn familiar with the value widgets from the last chapter. Heck, you can even create your own stateless widgets. But we’re still missing a major fundamental feature: event handling.

Let’s say you have a screen where the user chooses a product and puts it in their cart. They’ll have to scroll up and down through a list of products (Figure 5-1). The swipe up and down to scroll is a gesture. To choose a ...

Get Beginning App Development with Flutter: Create Cross-Platform Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.