showTicker static method
void
showTicker(
- BuildContext context, {
- String? title,
- bool showClose = false,
- dynamic content,
- dynamic confirm = 'Confirm',
- int secondsToAction = 3,
- Color? confirmBgColor,
- Color? confirmTextColor,
- VoidCallback? onConfirmPress,
- bool barrierDismissible = true,
Implementation
static void showTicker(
BuildContext context, {
String? title,
bool showClose = false,
dynamic content,
dynamic confirm = 'Confirm',
int secondsToAction = 3,
Color? confirmBgColor,
Color? confirmTextColor,
VoidCallback? onConfirmPress,
bool barrierDismissible = true,
}) {
showDialog(
context: context,
barrierDismissible: barrierDismissible,
builder: (context) {
return WillPopScope(
onWillPop: () async => barrierDismissible,
child: AlertDialog(
contentPadding: EdgeInsets.zero,
content: _VxDialog(
title: title,
showClose: showClose,
content: content,
cancel: confirm,
cancelBgColor: confirmBgColor,
cancelOnPress: onConfirmPress,
second: secondsToAction,
),
shape: RoundedRectangleBorder(borderRadius: _borderRadius),
),
);
});
}