Skip to content

Commit

Permalink
refactor(scatter_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 4a2b248 commit 1132716
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/src/chart/scatter_chart/scatter_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ class ScatterTooltipItem with EquatableMixin {
/// TextAlign of the showing content.
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] in the tooltip popup,
/// [bottomMargin] is the bottom space from spot.
Expand All @@ -451,7 +451,7 @@ class ScatterTooltipItem with EquatableMixin {
TextStyle textStyle,
double bottomMargin, {
TextAlign textAlign = TextAlign.center,
List<InlineSpan>? children,
List<TextSpan>? children,
}) : text = text,
textStyle = textStyle,
bottomMargin = bottomMargin,
Expand Down
2 changes: 1 addition & 1 deletion repo_files/documentations/scatter_chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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|
|bottomMargin| bottom margin of the tooltip (to the top of most top spot) | radius / 2|
|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|


### ScatterTouchResponse
Expand Down

0 comments on commit 1132716

Please sign in to comment.