Yegor Jbanov
Sep 8, 2018 · 1 min read

The widget test framework runs on the host computer (not on the mobile device or emulator) and it can test your widgets against any desired platform. To set the platform to something other than the default, wrap your test widget in a custom Theme with the desired platform value. More information is available here: https://docs.flutter.io/flutter/foundation/defaultTargetPlatform.html. Here’s an example.

However, if you are looking for information about actually running tests inside iOS, we have an integration testing framework for that. More information on that topic can be found here: https://flutter.io/testing/

I hope this is helpful.

    Yegor Jbanov

    Written by

    Software Engineer @Google @Flutter, https://twitter.com/yegorjbanov