showLoading static method

dynamic showLoading(
  1. BuildContext context, {
  2. String? text,
  3. bool isDefault = true,
})

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);
}