showAndrossyDialog<T> function

Future<T?> showAndrossyDialog<T>({
  1. required BuildContext context,
  2. required AndrossyDialogBuilder builder,
  3. bool material = true,
  4. bool animated = true,
  5. bool barrierDismissible = true,
  6. double barrierBlurSigma = 5.0,
  7. Color? barrierColor,
  8. String? barrierLabel,
  9. Curve? curve,
  10. Curve? reverseCurve,
  11. Duration? duration,
  12. Duration? reverseDuration,
  13. Duration? displayDuration,
  14. bool useSafeArea = false,
  15. bool useRootNavigator = true,
  16. RouteSettings? routeSettings,
  17. Offset? anchorPoint,
  18. AndrossyDialogPosition position = AndrossyDialogPosition.center,
  19. AndrossyDialogTransitionBuilder? transitionBuilder,
  20. TraversalEdgeBehavior? traversalEdgeBehavior,
  21. bool useModalBottomSheet = false,
  22. bool enableDrag = false,
  23. bool showDragHandle = false,
  24. bool isScrollControlled = false,
  25. AnimationStyle? sheetAnimationStyle,
  26. AnimationController? transitionAnimationController,
  27. double scrollControlDisabledMaxHeightRatio = 9.0 / 16.0,
  28. ShapeBorder? shape,
  29. double? elevation,
  30. Color? backgroundColor,
  31. BoxConstraints? constraints,
})

Implementation

Future<T?> showAndrossyDialog<T>({
  required BuildContext context,
  required AndrossyDialogBuilder builder,
  bool material = true,
  bool animated = true,
  bool barrierDismissible = true,
  double barrierBlurSigma = 5.0,
  Color? barrierColor,
  String? barrierLabel,
  Curve? curve,
  Curve? reverseCurve,
  Duration? duration,
  Duration? reverseDuration,
  Duration? displayDuration,
  bool useSafeArea = false,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
  Offset? anchorPoint,
  AndrossyDialogPosition position = AndrossyDialogPosition.center,
  AndrossyDialogTransitionBuilder? transitionBuilder,
  TraversalEdgeBehavior? traversalEdgeBehavior,

  // BOTTOM SHEET PROPERTY
  bool useModalBottomSheet = false,
  bool enableDrag = false,
  bool showDragHandle = false,
  bool isScrollControlled = false,
  AnimationStyle? sheetAnimationStyle,
  AnimationController? transitionAnimationController,
  double scrollControlDisabledMaxHeightRatio = 9.0 / 16.0,
  ShapeBorder? shape,
  double? elevation,
  Color? backgroundColor,
  BoxConstraints? constraints,
}) {
  return AndrossyDialog.show(
    context: context,
    builder: builder,
    anchorPoint: anchorPoint,
    animated: animated,
    backgroundColor: backgroundColor,
    barrierBlurSigma: barrierBlurSigma,
    barrierColor: barrierColor,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    curve: curve,
    constraints: constraints,
    duration: duration,
    displayDuration: displayDuration,
    elevation: elevation,
    enableDrag: enableDrag,
    isScrollControlled: isScrollControlled,
    material: material,
    position: position,
    reverseCurve: reverseCurve,
    reverseDuration: reverseDuration,
    routeSettings: routeSettings,
    shape: shape,
    scrollControlDisabledMaxHeightRatio: scrollControlDisabledMaxHeightRatio,
    sheetAnimationStyle: sheetAnimationStyle,
    showDragHandle: showDragHandle,
    transitionAnimationController: transitionAnimationController,
    transitionBuilder: transitionBuilder,
    traversalEdgeBehavior: traversalEdgeBehavior,
    useModalBottomSheet: useModalBottomSheet,
    useRootNavigator: useRootNavigator,
    useSafeArea: useSafeArea,
  );
}