tree: 46d91792298e08a962b05f072cc975dbe6e91033 [path history] [tgz]
  1. bin/
  2. ios/
  3. lib/
  4. .gitignore
  5. BUILD.gn
  6. pubspec.yaml
  7. README.md
  8. run_ios_tests.sh
engine/src/flutter/testing/ios_scenario_app/README.md

Scenario App

GitHub Issues or Pull Requests by label

This package simulates a Flutter app that uses the engine (dart:ui) only, in conjunction with iOS-specific embedding code that simulates the use of the engine in a real app (such as plugins and platform views).

run_ios_tests.sh is used to run the tests on a simulator.

See also:

  • File an issue with the e: scenario-app label.
  • lib/, the Dart code and instrumentation for the scenario app.
  • ios/, the iOS-side native code and tests.

Adding a New Scenario

Create a new subclass of Scenario and add it to the map in scenarios.dart. For an example, see animated_color_square.dart, which draws a continuously animating colored square that bounces off the sides of the viewport.

Then set the scenario from the iOS app by calling set_scenario on platform channel driver.