imaNNeo / imaNNeo/fl_chart

FLDotData accepting widgetBuilder instead of Painter

Open
#839 5 comments 16 reactions 0 assignees View on GitHub
enhancement Line Chart
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

For my application I need to display specific informations for each point of the LineChart.

In my case, I use the LineChart as a map Elevation View and I would like to display information for specific points of the line:
- Image of the location
- Circle or Rectangle regarding specific rules
- Text inside the circle

If I'm correct the current library allows to create our own FlDotPainter and provide a default FlDotCirclePainter in charge of displaying colored circle for points.

It would be more easy / user friendly to provide a WidgetBuilder as property of the FLDotData class instead of a painter.

Is this feature planed in the roadmap ?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing FLDotData and the FlDotPainter API described in the issue, then trace how LineChart points obtain their dot rendering. Define how a WidgetBuilder would receive point-specific information and how the existing default painter behavior remains supported. Done means the requested per-point images, shapes, and text can be represented through the proposed API.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.