This release has some breaking changes. So please check out the migration guide here
- IMPROVEMENT Allow to return a Widget in SideTitles.getTitlesWidget instead of a
String
. For example, you can pass an Icon widget as a title, #183. Check below samples:
LineChartSample 8 (Source Code)
BarChartSample 7 (Source Code)
- BREAKING Structure of
FlTitlesData
,AxisTitles
, andSideTitles
are changed. Because we are using a new system which allows you to pass any Flutter Widget as a title instead of passingstring
,textStyle
,textAlign
,rotation
, ... (Read our Migration Guide) - FEATURE Now we can use any Gradient such as LinearGradient and RadialGradient everywhere we have gradient.
- BUGFIX Fix BarChart rods gradient problem, #703.
- BREAKING
colors
property renamed tocolor
to keep only one solid color. And now we have agradient
field instead ofcolorStops
,gradientFrom
andgradientTo
in following classes: BarChartRodData, BackgroundBarChartRodData, BarAreaData, BetweenBarsData, LineChartBarData. (Read our Migration Guide to learn more about it)