showLoading static method

dynamic showLoading()

显示加载中弹框

Implementation

static showLoading() {
  _hideLoadFun = BotToast.showCustomLoading(
    clickClose: false,
    toastBuilder: (can) {
      return Container(
        padding: P.all(40),
        decoration: const BoxDecoration(
            color: Colors.black38, borderRadius: BorderRadius.all(Radius.circular(8))),
        child: CircularProgressIndicator(
          valueColor: AlwaysStoppedAnimation<Color>(_color),
          backgroundColor: Colors.white,
        ),
      );
    },
  );
}