flutter_easyloading icon indicating copy to clipboard operation
flutter_easyloading copied to clipboard

set backgroundColor transparent not work ,but show black

Open programer001 opened this issue 2 years ago • 2 comments

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

programer001 avatar Feb 03 '23 13:02 programer001

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

github-actions[bot] avatar Feb 03 '23 13:02 github-actions[bot]

@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.

nerd0geek1 avatar Mar 21 '23 03:03 nerd0geek1