imaNNeo / imaNNeo/fl_chart

Tapping outside of pie chart intercepts the gesture

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

Description

** Don't make a duplicate issue.
You can search in issues to make sure there isn't any already opened issue with your concern.

**Describe the bug**
I have 2 pie charts stacked on top of eachother. I cannot intercept the gesture on the bottom pie chart. I set up a print statement to get the index for each segment on the top one and i notice it prints -1. So that tells me the transparent area behind the piechart is intercepting the getstures.

**To Reproduce**
Put a pie chart on top of a box (or any other widget) of the same width as the pie chart that has a gesture recognizer. Try and get the box underneath to respond to touches just outside of the circular pie chart. The box underneath does not respond.

**Screenshots**
If applicable, add screenshots, or videoshots to help explain your problem.

**Versions**
Latest
Latest

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the stacked pie-chart and box setup described in the issue, then inspect the pie chart's gesture handling for taps outside the circular chart area. Done means the underlying box responds to touches outside the pie chart while the pie chart still handles touches on its segments.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.