0

I'm writing unit and integration tests for Flutter. If many widgets, with similar aspects (e.g. text), appear more than one time, how to filter for the right one?

Seth Ladd
  • 112,095
  • 66
  • 196
  • 279

1 Answers1

2

There are several options:

Finally you can use find.byPredicate or even extend the Finder class and get much more flexibility.

Yegor
  • 2,931
  • 1
  • 17
  • 6
  • For code usage of `find.descendant`, please see this answer https://stackoverflow.com/a/47296248/190309 – anticafe Jul 29 '19 at 03:43