SlideRevealScreen constructor
const
SlideRevealScreen({
- Key? key,
- required Widget leftHiddenPage,
- required Widget rightHiddenPage,
- required Widget child,
- SlideRevealController? controller,
- bool isLeftActive = true,
- bool isRightActive = true,
- Widget leftPlaceHolderWidget = const SizedBox.shrink(),
- Widget rightPlaceHolderWidget = const SizedBox.shrink(),
- double leftWidgetVisibilityThreshold = 0.1,
- double rightWidgetVisibilityThreshold = 0.1,
- num flingVelocity = 500,
- bool showDebugColors = false,
- double leftEdgeWidthBuilder(
- BuildContext context,
- bool isActive
- double leftEdgeTopPaddingBuilder(
- BuildContext context,
- bool isActive
- double leftEdgeBottomPaddingBuilder(
- BuildContext context,
- bool isActive
- double rightEdgeWidthBuilder(
- BuildContext context,
- bool isActive
- double rightEdgeTopPaddingBuilder(
- BuildContext context,
- bool isActive
- double rightEdgeBottomPaddingBuilder(
- BuildContext context,
- bool isActive
- 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,
});