SlidablePanel constructor
const
SlidablePanel({
- Key? key,
- required Widget child,
- required SlideController controller,
- double maxSlideThreshold = 0.6,
- Axis axis = Axis.horizontal,
- ActionLayout preActionLayout = const ActionLayout(alignment: ActionAlignment.spaceEvenly, motion: ActionMotion.behind),
- ActionLayout postActionLayout = const ActionLayout(alignment: ActionAlignment.spaceEvenly, motion: ActionMotion.behind),
- List<
Widget> ? preActions, - List<
Widget> ? postActions, - VoidCallback? onSlideStart,
- bool gestureDisabled = false,
Implementation
const SlidablePanel({
super.key,
required this.child,
required this.controller,
this.maxSlideThreshold = 0.6,
this.axis = Axis.horizontal,
this.preActionLayout = const ActionLayout(
alignment: ActionAlignment.spaceEvenly,
motion: ActionMotion.behind,
),
this.postActionLayout = const ActionLayout(
alignment: ActionAlignment.spaceEvenly,
motion: ActionMotion.behind,
),
this.preActions,
this.postActions,
this.onSlideStart,
this.gestureDisabled = false,
}) : assert(
maxSlideThreshold >= 0 && maxSlideThreshold <= 1,
'maxSlideThreshold should be in [0, 1]',
);