Exemple #1
0
 void _handleDragEnd(DragEndDetails details)
 {
     D.assert(this.mounted);
     D.assert(this._backGestureController != null);
     this._backGestureController.dragEnd(
         this._convertToLogical(details.velocity.pixelsPerSecond.dx / this.context.size.width) ?? 0);
     this._backGestureController = null;
 }
Exemple #2
0
 void _handleDragCancel()
 {
     D.assert(this.mounted);
     this._backGestureController?.dragEnd(0.0f);
     this._backGestureController = null;
 }
Exemple #3
0
 void _handleDragStart(DragStartDetails details)
 {
     D.assert(this.mounted);
     D.assert(this._backGestureController == null);
     this._backGestureController = this.widget.onStartPopGesture();
 }