We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We just move the onTap of GestureDetector to the Listener, and we can add the hover functionality as well
// src/ui/pluto_base_cell.dart void _handleOnTapUp(PointerDownEvent details) { _addGestureEvent(PlutoGridGestureType.onTapUp, details.position); } void _handleOnHover(PointerHoverEvent details) { _addGestureEvent(PlutoGridGestureType.onHover, details.position); } Listener( onPointerHover: _handleOnHover, onPointerDown: _handleOnTapUp, child: GestureDetector( behavior: HitTestBehavior.translucent, // Essential gestures. onLongPressStart: _handleOnLongPressStart, onLongPressMoveUpdate: _handleOnLongPressMoveUpdate, onLongPressEnd: _handleOnLongPressEnd, // Optional gestures. onDoubleTap: _onDoubleTapOrNull(), onSecondaryTapDown: _onSecondaryTapOrNull(), child: _CellContainer( cell: cell, rowIdx: rowIdx, row: row, column: column, cellPadding: column.cellPadding ?? stateManager.configuration.style.defaultCellPadding, stateManager: stateManager, child: _Cell( stateManager: stateManager, rowIdx: rowIdx, column: column, row: row, cell: cell, ), ), ), );
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 30 days with no activity.
Sorry, something went wrong.
Why is this needed ?
GestureDetector has a delay when using onTap and onDouble at the same time
GestureDetector has a delay when using onTap and onDouble at the same time Why is this needed ?
I thought that was fixed?
No branches or pull requests
We just move the onTap of GestureDetector to the Listener, and we can add the hover functionality as well
The text was updated successfully, but these errors were encountered: