简体   繁体   English

如何在Flutter集成测试中切换开关

[英]How to toggle a Switch in Flutter integration test

How to toggle a Switch in Flutter integration test? 如何在Flutter集成测试中切换Switch?

Tapping on the Swtich driver.tap(switch) does not work. 点击Swtich driver.tap(switch)不起作用。

Sorry, it does work. 抱歉,确实可以。 Need to wait a few milliseconds for the switch is briefly disable loading setting. 需要等待几毫秒的时间才能短暂禁用加载设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM