SlideRevealScreen constructor

const SlideRevealScreen({
  1. Key? key,
  2. required Widget leftHiddenPage,
  3. required Widget rightHiddenPage,
  4. required Widget child,
  5. SlideRevealController? controller,
  6. bool isLeftActive = true,
  7. bool isRightActive = true,
  8. Widget leftPlaceHolderWidget = const SizedBox.shrink(),
  9. Widget rightPlaceHolderWidget = const SizedBox.shrink(),
  10. double leftWidgetVisibilityThreshold = 0.1,
  11. double rightWidgetVisibilityThreshold = 0.1,
  12. num flingVelocity = 500,
  13. bool showDebugColors = false,
  14. double leftEdgeWidthBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  15. double leftEdgeTopPaddingBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  16. double leftEdgeBottomPaddingBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  17. double rightEdgeWidthBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  18. double rightEdgeTopPaddingBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  19. double rightEdgeBottomPaddingBuilder(
    1. BuildContext context,
    2. bool isActive
    )?,
  20. ValueChanged<SlideRevealProgress>? onProgressChanged,
})

Implementation

const SlideRevealScreen({
  super.key,
  required this.leftHiddenPage,
  required this.rightHiddenPage,
  required this.child,
  this.controller,
  this.isLeftActive = true,
  this.isRightActive = true,
  this.leftPlaceHolderWidget = const SizedBox.shrink(),
  this.rightPlaceHolderWidget = const SizedBox.shrink(),
  this.leftWidgetVisibilityThreshold = 0.1,
  this.rightWidgetVisibilityThreshold = 0.1,
  this.flingVelocity = 500,
  this.showDebugColors = false,
  this.leftEdgeWidthBuilder,
  this.leftEdgeTopPaddingBuilder,
  this.leftEdgeBottomPaddingBuilder,
  this.rightEdgeWidthBuilder,
  this.rightEdgeTopPaddingBuilder,
  this.rightEdgeBottomPaddingBuilder,
  this.onProgressChanged,
});