showLedgerBottomSheetPageView<T> function

Future<T?> showLedgerBottomSheetPageView<T>({
  1. required BuildContext context,
  2. required List<String> title,
  3. required List<String> subTitle,
  4. required PageController pageController,
  5. ScrollPhysics? physics,
  6. void onClose(
    1. BuildContext
    )?,
  7. TextStyle? titleStyle,
  8. TextAlign? titleAlign,
  9. BoxConstraints? constraints,
  10. EdgeInsets? padding,
  11. Color? barrierColor,
  12. bool useRootNavigator = false,
  13. bool isScrollControlled = true,
  14. RouteSettings? routeSettings,
  15. Color? backgroundColor,
  16. required List<Widget> children,
  17. Clip? clipBehavior,
  18. double? elevation,
  19. bool? showDragHandle,
  20. double? titleBottomSpacing,
  21. bool enableDrag = true,
  22. bool isDismissable = true,
  23. bool showCloseButton = true,
  24. ShapeBorder? shape,
  25. AnimationController? transitionAnimationController,
  26. Alignment confettiAlignment = Alignment.center,
  27. Widget? illustrationWidget,
  28. bool showTitle = true,
  29. Axis? scrollDirection,
})

Implementation

Future<T?> showLedgerBottomSheetPageView<T>({
  required BuildContext context,
  required List<String> title,
  required List<String> subTitle,
  required PageController pageController,
  ScrollPhysics? physics,
  void Function(BuildContext)? onClose,
  TextStyle? titleStyle,
  TextAlign? titleAlign,
  BoxConstraints? constraints,
  EdgeInsets? padding,
  Color? barrierColor,
  bool useRootNavigator = false,
  bool isScrollControlled = true,
  RouteSettings? routeSettings,
  Color? backgroundColor,
  required List<Widget> children,
  Clip? clipBehavior,
  double? elevation,
  bool? showDragHandle,
  double? titleBottomSpacing,
  bool enableDrag = true,
  bool isDismissable = true,
  bool showCloseButton = true,
  ShapeBorder? shape,
  AnimationController? transitionAnimationController,
  Alignment confettiAlignment = Alignment.center,
  Widget? illustrationWidget,
  bool showTitle = true,
  Axis? scrollDirection,
}) =>
    showModalBottomSheet<T>(
      context: context,
      barrierColor: barrierColor ?? context.grey.shade700.withOpacity(0.5),
      builder: (dialogContext) => Theme(
        data: dialogContext.theme,
        child: Padding(
          padding: (padding ?? (Spacing.lds200.y + Spacing.lds250.x)) +
              EdgeInsets.only(
                bottom: MediaQuery.of(dialogContext).viewInsets.bottom,
              ),
          child: PageViewBottomSheetContent(
            title: title,
            subTitle: subTitle,
            pageController: pageController,
            titleStyle: titleStyle,
            titleAlign: titleAlign,
            showCloseButton: showCloseButton,
            onClose: onClose,
            showDragHandle: showDragHandle,
            titleBottomSpacing: titleBottomSpacing,
            illustrationWidget: illustrationWidget,
            physics: physics,
            scrollDirection: scrollDirection,
            showTitle: showTitle,
            children: children,
          ),
        ),
      ),
      showDragHandle: showDragHandle,
      isScrollControlled: isScrollControlled,
      constraints: constraints,
      useRootNavigator: useRootNavigator,
      routeSettings: routeSettings,
      backgroundColor: backgroundColor,
      clipBehavior: clipBehavior,
      elevation: elevation,
      enableDrag: enableDrag,
      isDismissible: isDismissable,
      shape: shape,
      useSafeArea: true,
      transitionAnimationController: transitionAnimationController,
    );