showAnimatedFromRight static method

dynamic showAnimatedFromRight(
  1. BuildContext context, {
  2. String? title,
  3. required String message,
  4. String? imagePath,
  5. required String buttonText,
  6. required VoidCallback onTapDismiss,
  7. required PanaraDialogType panaraDialogType,
  8. Color? color,
  9. Color? textColor,
  10. Color? buttonTextColor,
  11. EdgeInsets? margin,
  12. EdgeInsets? padding,
  13. bool barrierDismissible = true,
  14. 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,
      ),
    );