showAnimatedFromRight static method
dynamic
showAnimatedFromRight(
- BuildContext context, {
- String? title,
- required String message,
- String? imagePath,
- required String buttonText,
- required VoidCallback onTapDismiss,
- required PanaraDialogType panaraDialogType,
- Color? color,
- Color? textColor,
- Color? buttonTextColor,
- EdgeInsets? margin,
- EdgeInsets? padding,
- bool barrierDismissible = true,
- bool noImage = false,
This will show the PanaraInfoDialog with slide animation from right.
for more information visit https://pub.dev/documentation/panara_dialogs/latest/
Implementation
static showAnimatedFromRight(
BuildContext context, {
String? title,
required String message,
String? imagePath,
required String buttonText,
required VoidCallback onTapDismiss,
required PanaraDialogType panaraDialogType,
Color? color,
Color? textColor,
Color? buttonTextColor,
EdgeInsets? margin,
EdgeInsets? padding,
bool barrierDismissible = true,
bool noImage = false,
}) =>
showGeneralDialog(
barrierDismissible: barrierDismissible,
context: context,
barrierLabel: '',
transitionDuration: const Duration(milliseconds: 300),
transitionBuilder: (context, animation, secondaryAnimation, child) {
return PanaraAnimations.fromRight(
animation, secondaryAnimation, child);
},
pageBuilder: (animation, secondaryAnimation, child) =>
PanaraInfoDialogWidget(
title: title,
message: message,
imagePath: imagePath,
buttonText: buttonText,
onTapDismiss: onTapDismiss,
panaraDialogType: panaraDialogType,
color: color,
textColor: textColor,
buttonTextColor: buttonTextColor,
margin: margin,
padding: padding,
noImage: noImage,
),
);