Handle scrolling

Tap, drag, and enter text

Cookbook

Testing

Widget

Tap, drag, and enter text

1. Create a widget to test

2. Enter text in the text field

3. Ensure tapping a button adds the todo

4. Ensure swipe-to-dismiss removes the todo

Complete example

Many widgets not only display information, but also respond
to user interaction. This includes buttons that can be tapped,
and TextField for entering text.

To test these interactions, you need a way to simulate them
in the test environment. For this purpose, use the
WidgetTester library.

The WidgetTester provides methods for entering text,
tapping, and dragging.

enterText()

tap()

drag()