imaNNeo / imaNNeo/fl_chart

"touchCallback" with "FlLongPressEnd" event return not empty "lineBarSpots"

Open
#1,869 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

**Describe the bug**
```dart
touchCallback: (FlTouchEvent event, LineTouchResponse? touchResponse) {
print(event) // FlLongPressEnd
print(touchResponse.lineBarSpots.isEmpty) // false
},
```
**Expected behavior**
To be empty like other end events.

**Versions**
Flutter: 3.24.5
FlChart: 0.69.2

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the touchCallback behavior for FlLongPressEnd with the provided Flutter and fl_chart versions, then trace the line-chart touch handling reached by that callback. Done means lineBarSpots is empty for this end event, consistently with the other end events, with the relevant behavior covered by an existing or added test if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.