showTicker static method
void
showTicker(
- BuildContext context, {
- String? title,
- bool showClose = false,
- dynamic content,
- dynamic action = 'Confirm',
- int secondsToAction = 3,
- Color? actionBgColor,
- Color? actionTextColor,
- VoidCallback? onActionPress,
- bool barrierDismissible = true,
Implementation
static void showTicker(
BuildContext context, {
String? title,
bool showClose = false,
dynamic content,
dynamic action = 'Confirm',
int secondsToAction = 3,
Color? actionBgColor,
Color? actionTextColor,
VoidCallback? onActionPress,
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: action,
cancelBgColor: actionBgColor,
cancelOnPress: onActionPress,
cancelTextColor: actionTextColor,
second: secondsToAction,
),
shape: RoundedRectangleBorder(borderRadius: _borderRadius),
),
);
});
}