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