void _onDown(DragDownDetails details)
        {
            D.assert(size.contains(details.localPosition));
            _localDragOffset = details.localPosition;
            int?index = indexFromLocation(_localDragOffset);

            _startedOnSelectedSegment = index == highlightedIndex;
            pressedIndex = index;

            if (_startedOnSelectedSegment)
            {
                _playThumbScaleAnimation(isExpanding: false);
            }
        }
Ejemplo n.º 2
0
 void _handleDragDown(DragDownDetails details)
 {
     D.assert(_drag == null);
     D.assert(_hold == null);
     _hold = position.hold(_disposeHold);
 }
Ejemplo n.º 3
0
 void _handlePanDown(DragDownDetails evt)
 {
     this._lastPointerLocation = evt.globalPosition;
     this._inspectAt(evt.globalPosition);
 }
Ejemplo n.º 4
0
 void _handleDragDown(DragDownDetails details)
 {
     this._controller.stop();
     this._ensureHistoryEntry();
 }
Ejemplo n.º 5
0
 void _handleDragDown(DragDownDetails details)
 {
     D.assert(this._drag == null);
     D.assert(this._hold == null);
     this._hold = this.position.hold(this._disposeHold);
 }