HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Repro Steps for Flutter

Learn more about the steps your user has taken until the bug or crash was reported on your Flutter app.

Repro Steps show you all of the interactions a user makes with your app up until a bug or crash is reported, grouped by app view. For each view that a user visits, all of the steps that they commit within those views are captured and displayed as a log, grouped by view.

2888

An example of Repro Steps in the Instabug dashboard.

Setting Up Repro Steps

To enable Repro Steps, you simply need to add InstabugNavigatorObserver to the navigatorObservers as shown below:

runApp(MaterialApp(
   navigatorObservers: [InstabugNavigatorObserver()],
 ));

Logged Data

Captured Events

UI Interactions

For the following gestures, only the gesture is logged and displayed:

  • Swipe
  • Scroll
  • Pinch
  • Tap
  • Force touch
  • Double tap
  • Enabling/disabling a switch
  • Changing the value of a slider
  • Editing a text field.

Lifecycle Events

Whenever one of the following lifecycle events occurs, it will be captured and shown on the timeline:

  • Application is moved to the background
  • Application is moved to the foreground
  • Application becomes active
  • Application becomes inactive
  • Memory warning

Extra Details

Depending on the event, you'll find further details displayed as part of the log statement.

  • Tap, double tap, and force touch: the SDK always tries to first capture the text rendered inside the UI that the user is interacting with, then we fall back to capturing the icon only with the buttons and navigation items, then, we fall back to the accessibility labels.
  • Switch: both the accessibility label as well as whether the user enabled or disabled the switch are logged.
  • Slider: both the accessibility label as well as the value that the user moves the slider to it are captured.
  • Text fields: first, the SDK tried to capture the placeholder, then we fall back to the accessibility label.

Examples

Here are some examples of how steps look like:

  • Tapped on the button "Send"
  • Double tapped on UI that contains "Instructions"
  • Started editing “Password“
  • Enabled the switch “Push Notifications“
  • Moved the slider “Text Size“ to 10%
  • App went to the background
  • App became active
  • Memory warning

User Privacy

Disclaimer

A disclaimer will be shown at the bottom of the report. It helps your users view all the screenshots taken for the Repro Steps before sending a report and can delete them as well.

Disabling and Enabling

Repro Steps is by default enabled with screenshots for both bug reporting and session replay and enabled without screenshots for crash reporting.

Instabug.setReproStepsConfig(
  bug: ReproStepsMode.enabled,
  crash: ReproStepsMode.enabledWithNoScreenshots,
  sessionReplay: ReproStepsMode.enabled,
);

To configure Repro Steps, use the Instabug.setReproStepsConfig() method. You can configure the desired mode for bug reports, crash reports, and session replay separately using the bug, crash, and sessionReplay parameters or configure all of them using the all parameter, which overrides bug, crash, and sessionReplay.

Instabug.setReproStepsConfig(
  all: ReproStepsMode.enabled,
); 

Possible Arguments:

//Enable Repro Steps with screenshots
ReproStepsMode.enabled
//Enable Repro Steps without screenshots
ReproStepsMode.enabledWithNoScreenshots
//Disable Repro Steps
ReproStepsMode.disabled

Examples

APIMeaning
Instabug.setReproStepsConfig(all: ReproStepsMode.enabled)

or

Instabug.setReproStepsConfig(bug: ReproStepsMode.enabled, crash: ReproStepsMode.enabled, sessionReplay: ReproStepsMode.enabled);
Enabled with screenshots for Bug Reporting, Crash Reporting, and Session Replay.



When the all value is present, it overrides all the the other arguments.
Instabug.setReproStepsConfig(crash: ReproStepsMode.enabledWithNoScreenshots)Enabled with no screenshots for Crash Reporting. (Bug Reporting and Session Replay still retain the default value enabled)
Instabug.setReproStepsConfig(bug: ReproStepsMode.enabled)Enabled with screenshot for Bug Reporting. (Crash Reporting and Session Replay still retain the default values of enabled without screenshots and enabled respectively)
Instabug.setReproStepsConfig(all: ReproStepsMode.disabled)

or

Instabug.setReproStepsConfig(bug: ReproStepsMode.disabled, crash: ReproStepsMode.disabled, sessionReplay: ReproStepsMode.disabled)
Completely disabled for Bug Reporting, Crash Reporting, and Session Replay.

📘

Screenshots are always disabled with Crash Reporting.

For Crash Reporting, the screenshots are always disabled as the data is silently collected without any interaction from the user. This decision is part of our ongoing commitment to end-users' privacy.