Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set backgroundColor transparent not work ,but show black #200

Open
programer001 opened this issue Feb 3, 2023 · 2 comments
Open

set backgroundColor transparent not work ,but show black #200

programer001 opened this issue Feb 3, 2023 · 2 comments

Comments

@programer001
Copy link

EasyLoading.instance
..indicatorType = EasyLoadingIndicatorType.circle
..loadingStyle = EasyLoadingStyle.custom
..indicatorSize = 20.0
..backgroundColor = Colors.transparent

@github-actions
Copy link

github-actions bot commented Feb 3, 2023

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

@nerd0geek1
Copy link

@programer001
I encountered the same issue, and that unexpected behavior is caused by the code below.
https://github.com/nslogx/flutter_easyloading/blob/develop/lib/src/widgets/container.dart#L204

So, maybe it will be good to insert last line.

  EasyLoading.instance
    ..indicatorType = EasyLoadingIndicatorType.circle
    ..loadingStyle = EasyLoadingStyle.custom
    ..indicatorSize = 20.0
    ..backgroundColor = Colors.transparent
    ..boxShadow = [] <- ADD THIS LINE

@nslogx
Thank you for creating this nice package.
Some people who use EasyLoadingStyle.custom may confuse about this behavior,
so it may be good to describe how to change black background with EasyLoadingStyle.custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants