Widget testing
A catalog of recipes for adding widget testing to your Flutter app.
Test orientation
How to test if an app is in portrait or landscape mode.
Widget 测试介绍
了解更多 Flutter 的 widget 测试。
模拟滚动操作
如何在 widget 测试中模拟滚动操作。
点击、拖拽事件和文本输入
如何测试与用户交互的 widgets。
定位到目标 widget
如何在 widget 测试中使用 Finder 类。
本页内容对你有帮助吗?
除非另有说明,本文档之所提及适用于 Flutter 3.41.2 版本。本页面最后更新时间:2025-10-28。查看文档源码 或者 为本页面内容提出建议。