Skip to content

Commit

Permalink
refactor(line_chart): switch InlineSpan to TextSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
jrc2139 committed Mar 22, 2021
1 parent efa75b3 commit 4a2b248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/chart/line_chart/line_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1552,8 +1552,8 @@ class LineTooltipItem with EquatableMixin {
/// Align of showing text.
final TextAlign textAlign;

/// List<InlineSpan> add further style and format to the text of the tooltip
final List<InlineSpan>? children;
/// List<TextSpan> add further style and format to the text of the tooltip
final List<TextSpan>? children;

/// Shows a [text] with [textStyle] and optional [children] as a row in the tooltip popup.
LineTooltipItem(
Expand Down
2 changes: 1 addition & 1 deletion repo_files/documentations/line_chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ When you change the chart's state, it animates to the new state internally (usin
|text|text string of each row in the tooltip bubble|null|
|textStyle|[TextStyle](https://api.flutter.dev/flutter/dart-ui/TextStyle-class.html) of the showing text row|null|
|textAlign|[TextStyle](https://api.flutter.dev/flutter/dart-ui/TextAlign-class.html) of the showing text row|TextAlign.center|
|children|[List<InlineSpan>](https://api.flutter.dev/flutter/painting/InlineSpan-class.html) pass additional InlineSpan children for a more advance tooltip|null|
|children|[List<TextSpan>](https://api.flutter.dev/flutter/painting/InlineSpan-class.html) pass additional InlineSpan children for a more advance tooltip|null|

### TouchedSpotIndicatorData
|PropName|Description|default value|
Expand Down

0 comments on commit 4a2b248

Please sign in to comment.