Skip to content
New issue

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

ScatterChart tooltips disappear immediately after pressing #1318

Closed
deezee30 opened this issue Apr 19, 2023 · 0 comments · Fixed by #1328
Closed

ScatterChart tooltips disappear immediately after pressing #1318

deezee30 opened this issue Apr 19, 2023 · 0 comments · Fixed by #1328
Labels
bug Something isn't working Scatter Chart

Comments

@deezee30
Copy link

deezee30 commented Apr 19, 2023

Describe the bug
For ScatterChart widgets, long-pressing on any spots shows a default tooltip overlay for around 200ms and then disappears. Dragging to the next spot does not show a new tooltip and the chart has to be long-pressed again. Subsequent presses also only remain for a minor period. In other words, the chart gets automatically unpressed shortly after being pressed.

This has been tested on emulated and physical Android phones. This behaviour was also tested on BarChart and LineChart widgets but did not produce this issue.

To Reproduce
This minimally reproducible widget causes this behaviour. Simply call it anywhere in the app.

class TestScatterChart extends StatelessWidget {
  const TestScatterChart({super.key});

  @override
  Widget build(BuildContext context) {
    return AspectRatio(
      aspectRatio: 1.8,
      child: Card(
        child: ScatterChart(
          ScatterChartData(
            scatterSpots: List.generate(
              10,
              (index) => ScatterSpot(
                index.toDouble(),
                index.toDouble(),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots
Not applicable - screenshots don't capture the process of tooltips disappearing in scatter charts.

Versions

  • Flutter stable v3.7.11
  • FlChart versions v0.55.0 through to v0.62.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Scatter Chart
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants