Skip to content

Commit 4257f33

Browse files
committed
fix: setTheme calling
1 parent 400df41 commit 4257f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/modules/instabug.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class Instabug {
339339
'This API is deprecated. Please use Instabug.setTheme instead.',
340340
)
341341
static Future<void> setPrimaryColor(Color color) async {
342-
await setTheme(ThemeConfig(primaryColor: color));
342+
await setTheme(ThemeConfig(primaryColor: color.toString()));
343343
}
344344

345345
/// Adds specific user data that you need to be added to the reports

0 commit comments

Comments
 (0)