From ea34a788c006be693429e009b69c1826995f0857 Mon Sep 17 00:00:00 2001 From: Iman Khoshabi Date: Fri, 18 Feb 2022 20:00:49 +0330 Subject: [PATCH] Update CHANGELOG.md: Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183. --- CHANGELOG.md | 2 ++ repo_files/documentations/migration_guides/migrate_to_.md | 0 2 files changed, 2 insertions(+) create mode 100644 repo_files/documentations/migration_guides/migrate_to_.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d366405c39..064ea7dcc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * **FEATURE** Now we can use any [Gradient](https://api.flutter.dev/flutter/dart-ui/Gradient-class.html) such as [LinearGradient](https://api.flutter.dev/flutter/painting/LinearGradient-class.html) and [RadialGradient](https://api.flutter.dev/flutter/painting/RadialGradient-class.html) everywhere we have gradient. * **BUGFIX** Fix BarChart rods gradient problem, #703. * **BREAKING** `colors` property renamed to `color` to keep only one solid color. And now we have a `gradient` field instead of `colorStops`, `gradientFrom` and `gradientTo` in following classes: [BarChartRodData](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/bar_chart.md#barchartroddata), [BackgroundBarChartRodData](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/bar_chart.md#backgroundbarchartroddata), [BarAreaData](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/line_chart.md#BarAreaData), [BetweenBarsData](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/line_chart.md#betweenbarsdata), [LineChartBarData](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/line_chart.md#linechartbardata) +* **IMPROVEMENT** Allow to return a Widget in [SideTitles](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/base_chart.md#sidetitles) . `getTitles` instead of a `String`. For example, you can pass an [Icon](https://api.flutter.dev/flutter/widgets/Icon-class.html) widget as a title, #183. Check below samples: +* **BREAKING** Structure of `FlTitlesData`, `AxisTitles`, and `SideTitles` are changed. Because we are using a new system which allows you to pass any [Flutter Widget](https://docs.flutter.dev/development/ui/widgets) as a title instead of passing `string`, `textStyle`, `textAlign`, `rotation`, ... (Read our [Migration Guide](https://github.com/imaNNeoFighT/fl_chart/blob/master/repo_files/documentations/migration_guides/migrate_to_.md)) ## 0.46.0 * **BUGFIX** Fix drawing BetweenBarsArea problem when there are `nullSpots` in fromLine and toLine, #912. diff --git a/repo_files/documentations/migration_guides/migrate_to_.md b/repo_files/documentations/migration_guides/migrate_to_.md new file mode 100644 index 0000000000..e69de29bb2