Example #1
0
 void _handleLongPressStart(LongPressStartDetails details)
 {
     if (!_isDoubleTap && widget.onSingleLongTapStart != null)
     {
         widget.onSingleLongTapStart(details);
     }
 }
Example #2
0
 void _handleSingleLongTapStart(LongPressStartDetails details)
 {
     this._renderEditable.selectPositionAt(
         from: details.globalPosition,
         cause: SelectionChangedCause.longPress
         );
 }
Example #3
0
 protected override void onSingleLongTapStart(LongPressStartDetails details)
 {
     if (_delegate.selectionEnabled)
     {
         //use android by default
         renderEditable.selectWord(cause: SelectionChangedCause.longPress);
         Feedback.forLongPress(_state.context);
     }
 }
Example #4
0
 void _handleLongPressStart(LongPressStartDetails details)
 {
     _currentController = _controller;
     if (!_checkVertical())
     {
         return;
     }
     _pressStartY = details.localPosition.dy;
     _fadeoutTimer?.cancel();
     _fadeoutAnimationController.forward();
     _dragScrollbar(details.localPosition.dy);
     _dragScrollbarPositionY = details.localPosition.dy;
 }
        void _handleSingleLongTapStart(LongPressStartDetails details)
        {
            if (this.widget.selectionEnabled)
            {
                switch (Theme.of(this.context).platform)
                {
                case RuntimePlatform.IPhonePlayer:
                    this._renderEditable.selectPositionAt(
                        from: details.globalPosition,
                        cause: SelectionChangedCause.longPress
                        );
                    break;

                case RuntimePlatform.Android:
                    this._renderEditable.selectWord(cause: SelectionChangedCause.longPress);
                    Feedback.forLongPress(this.context);
                    break;
                }
            }
            this._confirmCurrentSplash();
        }
Example #6
0
        protected override void onSingleLongTapStart(LongPressStartDetails details)
        {
            if (_delegate.selectionEnabled)
            {
                switch (Theme.of(_state.context).platform)
                {
                case RuntimePlatform.IPhonePlayer:
                case RuntimePlatform.OSXEditor:
                case RuntimePlatform.OSXPlayer:
                    renderEditable.selectPositionAt(
                        from: details.globalPosition,
                        cause: SelectionChangedCause.longPress
                        );
                    break;

                default:
                    renderEditable.selectWord(cause: SelectionChangedCause.longPress);
                    Feedback.forLongPress(_state.context);
                    break;
                }
            }
        }