void _handleLongPress() { bool tooltipCreated = this.ensureTooltipVisible(); if (tooltipCreated) { Feedback.forLongPress(this.context); } }
protected override void onSingleLongTapStart(LongPressStartDetails details) { if (_delegate.selectionEnabled) { //use android by default renderEditable.selectWord(cause: SelectionChangedCause.longPress); Feedback.forLongPress(_state.context); } }
void _handleLongPress() { _longPressActivated = true; bool tooltipCreated = ensureTooltipVisible(); if (tooltipCreated) { Feedback.forLongPress(context); } }
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(); }
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; } } }
void _handleSingleLongTapMoveUpdate(LongPressMoveUpdateDetails 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.selectWordsInRange( from: details.globalPosition - details.offsetFromOrigin, to: details.globalPosition, cause: SelectionChangedCause.longPress); Feedback.forLongPress(this.context); break; } } }