showLoading static method
loading, 默认为半透明黑色背景、白色图片,可以根据需求设置为白色背景、黑色图片
Implementation
static showLoading(BuildContext context, {String? text, bool isDefault = true}) {
JJLoadingManager.instance.showLoading(context,
text: text,
color: isDefault ? Colors.white : Colors.black,
backgroundColor: isDefault ? Colors.black.withAlpha(165) : Colors.white,
loadingType: JJLoadingType.circularAnimation);
}