InnerDrawer constructor
const
InnerDrawer({
- GlobalKey<
State< ? key,StatefulWidget> > - Widget? leftChild,
- Widget? rightChild,
- required Widget scaffold,
- IDOffset offset = const IDOffset.horizontal(0.4),
- IDOffset scale = const IDOffset.horizontal(1),
- bool proportionalChildArea = true,
- double borderRadius = 0,
- bool onTapClose = false,
- bool tapScaffoldEnabled = false,
- bool swipe = true,
- bool swipeChild = false,
- Duration? duration,
- double velocity = 1,
- List<
BoxShadow> ? boxShadow, - Color? colorTransitionChild,
- Color? colorTransitionScaffold,
- InnerDrawerAnimation leftAnimationType = InnerDrawerAnimation.static,
- InnerDrawerAnimation rightAnimationType = InnerDrawerAnimation.static,
- Decoration? backgroundDecoration,
- InnerDrawerCallback? innerDrawerCallback,
- InnerDragUpdateCallback? onDragUpdate,
Implementation
const InnerDrawer(
{GlobalKey? key,
this.leftChild,
this.rightChild,
required this.scaffold,
this.offset = const IDOffset.horizontal(0.4),
this.scale = const IDOffset.horizontal(1),
this.proportionalChildArea = true,
this.borderRadius = 0,
this.onTapClose = false,
this.tapScaffoldEnabled = false,
this.swipe = true,
this.swipeChild = false,
this.duration,
this.velocity = 1,
this.boxShadow,
this.colorTransitionChild,
this.colorTransitionScaffold,
this.leftAnimationType = InnerDrawerAnimation.static,
this.rightAnimationType = InnerDrawerAnimation.static,
this.backgroundDecoration,
this.innerDrawerCallback,
this.onDragUpdate})
: assert(leftChild != null || rightChild != null),
assert(scaffold != null),
super(key: key);