From cf034e3ee5f31e7b854bb244b58c056f75e1cc79 Mon Sep 17 00:00:00 2001 From: zmtzawqlp Date: Fri, 19 Jul 2019 22:47:45 +0800 Subject: [PATCH] ## [0.6.1] * Fix issue [type 'List' is not a subtype of type 'List'](https://github.com/fluttercandies/extended_text/issues/20) --- CHANGELOG.md | 4 ++++ lib/src/extended_render_paragraph.dart | 2 +- lib/src/over_flow_text_span.dart | 2 +- pubspec.yaml | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b3452..96be285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.6.1] + +* Fix issue [type 'List' is not a subtype of type 'List'](https://github.com/fluttercandies/extended_text/issues/20) + ## [0.6.0] * Improve codes base on v1.7.8 diff --git a/lib/src/extended_render_paragraph.dart b/lib/src/extended_render_paragraph.dart index ffb4aa8..0c830e7 100644 --- a/lib/src/extended_render_paragraph.dart +++ b/lib/src/extended_render_paragraph.dart @@ -112,7 +112,7 @@ class ExtendedRenderParagraph extends RenderBox OverFlowTextSpan _overFlowTextSpan; final TextOverflow _oldOverflow; OverFlowTextSpan get overFlowTextSpan => _overFlowTextSpan; - set overFlowTextSpan(TextSpan value) { + set overFlowTextSpan(OverFlowTextSpan value) { if (value != _overFlowTextSpan) { if (value != null) { overflow = TextOverflow.clip; diff --git a/lib/src/over_flow_text_span.dart b/lib/src/over_flow_text_span.dart index 1648597..968c8df 100644 --- a/lib/src/over_flow_text_span.dart +++ b/lib/src/over_flow_text_span.dart @@ -32,7 +32,7 @@ class OverFlowTextSpan extends TextSpan { return typedOther.text == text && typedOther.style == style && typedOther.recognizer == recognizer && - listEquals(typedOther.children, children); + listEquals(typedOther.children, children); } @override diff --git a/pubspec.yaml b/pubspec.yaml index b551425..3897535 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: extended_text description: extended official text to quickly build special text like inline image or @somebody,it also provide custom background,custom over flow. -version: 0.6.0 +version: 0.6.1 author: zmtzawqlp homepage: https://github.com/fluttercandies/extended_text @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter - extended_text_library: ^0.4.2 + extended_text_library: 0.4.2 dev_dependencies: flutter_test: