imaNNeo / imaNNeo/fl_chart

`BarChartRodData.borderRadius` does not support `BorderRadiusDirectional`

Open
#1,189 1 comment 0 reactions 0 assignees View on GitHub
enhancement Fundamental good first issue
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

**Describe the bug**
`BarChartRodData.borderRadius` does not support `BorderRadiusDirectional`, as its type is constrained to the `BorderRadius` implementation instead of the abstract `BorderRadiusGeometry` representation.

The same happens with `FlBorderData.border`, which expects a `Border` instead of a `BorderGeometry`.

It may be a feature rather than a bug, but I vote for the ability to use these directionality utilities.

**To Reproduce**
Provide a `BorderRadiusDirectional` object into the `BarChartRodData.borderRadius` property, or into `FlBorderData.border`.

**Screenshots**

Screenshot
Captura de pantalla 2022-11-25 a les 0 26 02

**Versions**
- which version of Flutter are you using? **3.3.9**
- which version of FlChart are you using? **0.55.2**

Contributor guide

Open the contributing guide

Research direction

Start by locating the definitions and usages of BarChartRodData.borderRadius and FlBorderData.border. Check how their current types are used across the chart widgets, then verify that BorderRadiusDirectional and BorderGeometry values can be passed through both entry points without breaking existing behavior.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.