admin管理员组文章数量:1356011
I'm testing a flutter app, in version 3.22.2. I want to test a tap on backButton in AppBar. The button appears in the app. When I use Flutter Inspector in VSCode, I can see the widget in the widget detail tree but not in the widget tree. And it doesn't appear when I log it with debugDumpApp()
I still tried :
final findBackButton = (find
.descendant(
of: find.byType(AppBar),
matching: find.byType(BackButton), // ou avec find.byType(GestureDetector)
matchRoot: true
)
);
expect(findBackButton, findsOneWidget);
and
expect(find.byTooltip('Retour'), findsOneWideget);
and
expect(find.backButton(), findsOneWidget);
I rode that this method is available since the version 3.24 (commit b05c2fa dans gitHub flutter )
or
expect(find.byType(BackButton, findsOneWidget);
Could someone help me please?
本文标签: Find BackButton in flutter version 3222Stack Overflow
版权声明:本文标题:Find BackButton in flutter version 3.22.2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744048093a2581908.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论