DragContainer constructor

DragContainer({
  1. Key? key,
  2. required Widget dragWidget,
  3. double initChildRate = 0.1,
  4. double maxChildRate = 0.4,
  5. double cornerRadius = 12,
  6. Color backGroundColor = Colors.white,
  7. bool isShowHeader = true,
  8. bool useAtEdge = true,
  9. Duration duration = const Duration(milliseconds: 250),
  10. double maxOffsetDistance = 1.5,
  11. ScrollController? scrollController,
  12. DragController? controller,
  13. dynamic dragCallBack(
    1. bool isOpen
    )?,
})

Implementation

DragContainer(
    {Key? key,
    required this.dragWidget,
    this.initChildRate = 0.1,
    this.maxChildRate = 0.4,
    this.cornerRadius = 12,
    this.backGroundColor = Colors.white,
    this.isShowHeader = true,
    this.useAtEdge = true,
    this.duration = const Duration(milliseconds: 250),
    this.maxOffsetDistance = 1.5,
    this.scrollController,
    this.controller,
    this.dragCallBack});