Open
Description
Like Espresso's onData API for interacting with native AdapterView/RecyclerView, we'd like to have similar testing API for Flutter's ListView/GridView. ListView has support for:
- A set of fixed children items;
- Dynamically built child items through its ListView.builder;
- An infinite number of children items without specifying the
itemCount
in its ListView.builder.
After doing some experiments, it's doable to match against the sliver which backs up the ListView data, but we cannot jump to a given position/index in the ListView today (blocked by flutter/flutter#12319).