Closed mdmota closed 3 years ago
@mdmota
u can use find.byKey
final Finder PDFWidget = find.byKey(Key('pdfFromUrlKey'));
expect(PDFWidget, findsOneWidget);
PDF().cachedFromUrl( 'url', key: Key('pdfFromUrlKey'), )
ah ok, good alternative. thank you
I know the component is on the screen, because I put a key on your ancestor and verified that the ancestor was found
final PDFWidget = find.byType(PDF); expect(PDFWidget, findsOneWidget);
return _WidgetTypeFinder:<zero widgets with type "PDF" (ignoring offstage widgets)