Flutter_html: [1.0.0-pre.1] - Compiler errors

Created on 20 Mar 2020  路  3Comments  路  Source: Sub6Resources/flutter_html

I was using successfully ^1.0.0-pre.1 until this month beginning, but now I have an error message when compiling for iOS.
When I replace flutter_html: ^1.0.0-pre.1 by flutter_html: ^0.11.1, everything runs fine.
But I really, really need furigana/ruby support.
Is this a bug in 1.0.0-pre.1 ?
Is there any date planed to integrate 1.0.0-pre.1 in the master branch ?
Thank you very much for all your work. Furigana on flutter was really missing.

Compiler message:
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:88:7: Error: The type 'Diagnosticable' can't be used as supertype.
class PictureStream extends Diagnosticable {
      ^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:192:16: Error: The type 'Diagnosticable' can't be used as supertype.
abstract class PictureStreamCompleter extends Diagnosticable {
               ^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(properties);
          ^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.14.4/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
          ^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
Command PhaseScriptExecution failed with a nonzero exit code

Most helpful comment

You can override dependencies in your own project's pubspec.yaml, then you don't need to worry about editing the package's pubspec. This fixes the issue:

dependency_overrides:
  flutter_svg: ^0.17.4

All 3 comments

I fixed this issue with changing the dependency to flutter_svg in pubspec.yaml :

flutter_svg: ^0.17.3

After a flutter upgrade I'm hit by this as well. The workaround mentioned above doesn't work, I'm getting:

Because flutter_html 1.0.0-pre.1 depends on flutter_svg ^0.14.1 and no versions of flutter_html match >1.0.0-pre.1 <2.0.0, flutter_html ^1.0.0-pre.1 requires flutter_svg ^0.14.1.
So, because my_app depends on both flutter_html ^1.0.0-pre.1 and flutter_svg ^0.17.4, version solving failed.

You can override dependencies in your own project's pubspec.yaml, then you don't need to worry about editing the package's pubspec. This fixes the issue:

dependency_overrides:
  flutter_svg: ^0.17.4
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ngaurav picture ngaurav  路  6Comments

Seedorf161 picture Seedorf161  路  5Comments

raLaaaa picture raLaaaa  路  3Comments

assurancetourix picture assurancetourix  路  3Comments

NicoDreamzZ picture NicoDreamzZ  路  5Comments