Skip to content

Commit 5fd4258

Browse files
docs: fold every corner-radius change into one changelog entry
1 parent 45a1f78 commit 5fd4258

1 file changed

Lines changed: 24 additions & 9 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,30 @@
2424

2525
### Fixed
2626

27-
- **`BarSeries.radius` is a `BorderRadius`** rather than a `double`, so each
28-
corner of a bar can be rounded on its own. The radii are read as they are
29-
drawn on the screen and scaled down together when they do not fit, so the old
30-
"round the end away from the baseline" shape is now written out:
31-
`radius: BorderRadius.vertical(top: Radius.circular(3))` for bars above the
32-
baseline, `BorderRadius.horizontal(right: …)` on a horizontal chart. A bar
33-
below the baseline no longer flips its rounding by itself.
34-
- `seriesBarBox` takes that `BorderRadius` and no longer takes `horizontal` or
35-
`positive`.
27+
- **Every corner radius in the package is a `BorderRadius`** rather than a
28+
`double`, so a caller picks the corners instead of getting whichever ones the
29+
painter decided to round. The radii are read as they are drawn on the screen
30+
— `topLeft` is the top-left corner however the shape was grown — and scaled
31+
down together when they do not fit.
32+
- Bars: `BarSeries.radius`, `HistogramChart.barRadius`,
33+
`RMultipleChart.barRadius`, `WaterfallChart.barRadius` and
34+
`TradeTimelineChart.barRadius`. The old "round the end away from the
35+
baseline" shape is now written out —
36+
`radius: BorderRadius.vertical(top: Radius.circular(3))` above the
37+
baseline, `BorderRadius.horizontal(right: …)` on a horizontal chart — and
38+
a bar below the baseline no longer flips its rounding by itself. A trade
39+
that is still open keeps its square right edge whatever the radius says.
40+
- Cells and tiles: `CalendarChart.cellRadius`, `WaffleChart.cellRadius`,
41+
`TreemapChart.radius`, `HeatmapChart.radius` and
42+
`SeasonalityChart.radius`.
43+
- Cards, labels and chrome: `SeriesTooltip.borderRadius`,
44+
`ChartStyle.labelCornerRadius`, `DrawingStyle.labelCornerRadius`,
45+
`DrawingStyle.toolbarBorderRadius` and `DrawingStyle.popoverBorderRadius`.
46+
47+
Each default draws the shape it drew before, so only code that passed a
48+
radius needs changing. Radii that describe a circle — dots, pie and gauge
49+
arcs, drawing handles, event marks, the rounded ends of the depth ratio bar
50+
— stay `double`.
3651

3752
## 2.6.0 - 2026-09-16
3853

0 commit comments

Comments
 (0)