builder method

  1. @override
Widget builder(
  1. BuildContext context
)
override

Implementation

@override
Widget builder(BuildContext context) {
  _bucketChildSize ??= Of(Size.copy(screenSize));

  return GestureDetector(
      onHorizontalDragStart:
          !widget.enableBucketDragGesture ? null : _onBucketDragStart,
      onHorizontalDragEnd:
          !widget.enableBucketDragGesture ? null : _onBucketDragEnd,
      onHorizontalDragUpdate:
          !widget.enableBucketDragGesture ? null : _onBucketDragged,
      child: Stack(children: [
        Positioned(
            top: 0,
            left: 0,
            width: screenSize.width,
            height: screenSize.height,
            child: Material(
                child: SafeArea(
                    top: false,
                    child: Container(
                      decoration: widget.decoration,
                      child: widget.drawer,
                    )))),
        Observer(
            of: _childPosition,
            builder: (_) => AnimatedPositioned(
                duration: Duration(milliseconds: 200),
                top: _childPosition.value.y,
                left: _childPosition.value.x,
                width: _bucketChildSize?.value.width ?? screenSize.width,
                height: _bucketChildSize?.value.height ?? screenSize.height,
                child: ClipRRect(
                    borderRadius: _bucketActionLock
                        ? BorderRadius.zero
                        : BorderRadius.circular(20),
                    child: GestureDetector(
                        onTap: _bucketActionLock ? null : close,
                        child: _child)))),
      ]));
}