showAnimatedShrink static method
dynamic
showAnimatedShrink(
- 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 shrink animation from center.
for more information visit https://pub.dev/documentation/panara_dialogs/latest/
Implementation
static showAnimatedShrink(
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.shrink(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,
),
);