warning static method
void
warning(
- String message
)
Implementation
static void warning(String message) {
BotToast.showNotification(
backgroundColor: warningColor,
borderRadius: 8.0,
margin: EdgeInsets.symmetric(horizontal: 15),
title:
(_) => Text(
message,
style: baseText.copyWith(fontSize: 13, color: titleColor),
),
leading:
(_) => Container(
height: 20,
width: 20,
decoration: BoxDecoration(shape: BoxShape.circle),
child: Icon(Icons.warning, color: Color(0xffFAAD14)),
),
duration: Duration(seconds: 5),
align: Alignment(0, 0.95),
);
}