FLDotData accepting widgetBuilder instead of Painter
- 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
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