File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,10 @@ class _MyHomePageState extends State<MyHomePage> {
114
114
BugReporting .setInvocationEvents ([invocationEvent]);
115
115
}
116
116
117
- void changePrimaryColor () {
117
+ void changePrimaryColor () async {
118
118
String text = primaryColorController.text.replaceAll ('#' , '' );
119
- Instabug .setTheme (ThemeConfig (primaryColor: '#$text ' ));
119
+ await Instabug .setTheme (ThemeConfig (primaryColor: '#$text ' ));
120
+ await Future .delayed (const Duration (milliseconds: 500 ));
120
121
}
121
122
122
123
void setColorTheme (ColorTheme colorTheme) {
Original file line number Diff line number Diff line change @@ -443,15 +443,4 @@ void main() {
443
443
mHost.setTheme (themeConfig.toMap ()),
444
444
).called (1 );
445
445
});
446
-
447
- test ('[setPrimaryColor] should call setTheme with primary color' , () async {
448
- const color = Color (0xFFFF0000 );
449
-
450
- // ignore: deprecated_member_use
451
- await Instabug .setPrimaryColor (color);
452
-
453
- verify (
454
- mHost.setTheme (any),
455
- ).called (1 );
456
- });
457
446
}
You can’t perform that action at this time.
0 commit comments