primarySnackBar method
Future
primarySnackBar(
- String message, {
- double? elevation,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? width,
- ShapeBorder? shape,
- SnackBarBehavior behavior = SnackBarBehavior.floating,
- SnackBarAction? action,
- Duration duration = const Duration(seconds: 4),
- Animation<
double> ? animation, - VoidCallback? onVisible,
- bool waitDialogToPop = true,
- bool waitPopupRouteToPop = false,
Implementation
Future primarySnackBar(
String message, {
double? elevation,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
double? width,
ShapeBorder? shape,
SnackBarBehavior behavior = SnackBarBehavior.floating,
SnackBarAction? action,
Duration duration = const Duration(seconds: 4),
Animation<double>? animation,
VoidCallback? onVisible,
bool waitDialogToPop = true,
bool waitPopupRouteToPop = false,
}) {
return showSnackBar(
message,
backgroundColor: Theme.of(this).colorScheme.primary,
textColor: Theme.of(this).colorScheme.onPrimary,
elevation: elevation,
margin: margin,
padding: padding,
width: width,
shape: shape,
behavior: behavior,
action: action,
duration: duration,
animation: animation,
onVisible: onVisible,
waitPopupRouteToPop: waitPopupRouteToPop,
waitDialogToPop: waitDialogToPop,
);
}