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> {
114114 BugReporting .setInvocationEvents ([invocationEvent]);
115115 }
116116
117- void changePrimaryColor () {
117+ void changePrimaryColor () async {
118118 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 ));
120121 }
121122
122123 void setColorTheme (ColorTheme colorTheme) {
Original file line number Diff line number Diff line change @@ -443,15 +443,4 @@ void main() {
443443 mHost.setTheme (themeConfig.toMap ()),
444444 ).called (1 );
445445 });
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- });
457446}
You can’t perform that action at this time.
0 commit comments