showLoading static method

void showLoading()

Implementation

static void showLoading() {
  hideLoading();
  BotToast.showCustomLoading(toastBuilder: (context) {
    return Container(
      padding: const EdgeInsets.all(24),
      decoration: const BoxDecoration(
          color: Colors.black54,
          borderRadius: BorderRadius.all(Radius.circular(12))),
      child: const Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          SizedBox(height: 4),
          CircularProgressIndicator(
            valueColor: AlwaysStoppedAnimation(Colors.white),
          ),
          SizedBox(height: 12),
          Text(
            "Loading...",
            maxLines: 1,
            style: TextStyle(fontSize: 15, color: Colors.white),
            overflow: TextOverflow.ellipsis,
          )
        ],
      ),
    );
  });
}