nslogx / flutter_easyloading

✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
https://pub.dev/packages/flutter_easyloading
MIT License
1.26k stars 222 forks source link

How to dynamically change the background color? #138

Open mdmota opened 3 years ago

mdmota commented 3 years ago

I need to switch the background color according to the message. For example in showSuccess I want the background color to be green. I tried that way and it didn't work:

EasyLoading.instance.backgroundColor = Colors.red; EasyLoading.showSuccess("Success");

github-actions[bot] commented 3 years ago

Thanks for taking the time to open an issue. I will have a look and answer as soon as possible.