Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1132716

Browse files
committed
refactor(scatter_chart): switch InlineSpan to TextSpan
1 parent 4a2b248 commit 1132716

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/src/chart/scatter_chart/scatter_chart_data.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ class ScatterTooltipItem with EquatableMixin {
441441
/// TextAlign of the showing content.
442442
final TextAlign textAlign;
443443

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

447447
/// Shows a [text] with [textStyle] and optional [children] in the tooltip popup,
448448
/// [bottomMargin] is the bottom space from spot.
@@ -451,7 +451,7 @@ class ScatterTooltipItem with EquatableMixin {
451451
TextStyle textStyle,
452452
double bottomMargin, {
453453
TextAlign textAlign = TextAlign.center,
454-
List<InlineSpan>? children,
454+
List<TextSpan>? children,
455455
}) : text = text,
456456
textStyle = textStyle,
457457
bottomMargin = bottomMargin,

repo_files/documentations/scatter_chart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ When you change the chart's state, it animates to the new state internally (usin
6262
|text|text string of each row in the tooltip bubble|null|
6363
|textStyle|[TextStyle](https://api.flutter.dev/flutter/dart-ui/TextStyle-class.html) of the showing text row|null|
6464
|bottomMargin| bottom margin of the tooltip (to the top of most top spot) | radius / 2|
65-
|children|[List<InlineSpan>](https://api.flutter.dev/flutter/painting/InlineSpan-class.html) pass additional InlineSpan children for a more advance tooltip|null|
65+
|children|[List<TextSpan>](https://api.flutter.dev/flutter/painting/InlineSpan-class.html) pass additional InlineSpan children for a more advance tooltip|null|
6666

6767

6868
### ScatterTouchResponse

0 commit comments

Comments
 (0)