UI Color & Theme

This section covers how to customize how Instabug appears in your app in order to match your design and brand palette for Flutter apps.

SDK Theme

The SDK UI has two color themes: light and dark.

You can set which theme to use with the following method:

Dart
Luciq.setColorTheme(ColorTheme.dark);

Here are the possible color themes:

Dart
ColorTheme.light
ColorTheme.dark

Setting the Primary Color

You can set the color of UI elements that indicate interactivity, like links, or a call to action, like buttons, using the following method:

Dart
Luciq.setPrimaryColor(Color.blue);

Floating Button Position

If your invocation event is a floating button, you can set its position in your app. You can set the edge and the offset, which specify the position on the y-axis.

Dart
BugReporting.setFloatingButtonEdge(FloatingButtonEdge.right, 250);

Video Recording Button

If you've enabled video recordings as attachments, you can change the position of the red recording button displayed in the screenshot below. The default position of the button is bottom right.

Default position: bottom right

Use this method to set the position of the video recording button:

Here are the possible values:

Last updated