Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[BUG] code error #1296

Closed rengui-hs closed 1 year ago

rengui-hs commented 1 year ago

Describe the bug:

code error

HTML to reproduce the issue:

Html widget configuration:

flutter html demo

Expected behavior:

code works fine

Screenshots:

image

Device details and Flutter/Dart/flutter_html versions:

3.10.1/2.23.1/^3.0.0-beta.1

Stacktrace/Logcat

: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'.

Restarted application in 3,396ms.

rengui-hs commented 1 year ago

Please release the latest code. This error is due to the version of flutter_math_fork being 0.6.3+1.

alihaider78222 commented 1 year ago

Facing same issue after updating flutter to 3.10.0 and dart to 3.0.0.

lmshek commented 1 year ago

Same here after upgrading the flutter to 3.10.2.

alihaider78222 commented 1 year ago

The issue is actually in flutter_math_fork used by flutter_html, I have created a Pull request with the required fixes, hopefully it will be approved and then afterward flutter_html team can update flutter_math_fork dependency and it will be resolved :)

rengui-hs commented 1 year ago

The issue is actually in flutter_math_fork used by flutter_html, I have created a Pull request with the required fixes, hopefully it will be approved and then afterward flutter_html team can update flutter_math_fork dependency and it will be resolved :)

The latest code has updated the flutter_math_fork version but it has not been released yet

Sub6Resources commented 1 year ago

The latest version has been released. The issue was with the flutter_math_fork library not having support for Dart 3. Try out 3.0.0-beta.2 which references the latest version of flutter_math_fork which should resolve this issue. If it doesn't resolve, check your pubspec.lock to make sure the latest version of flutter_math_fork is being used.

rengui-hs commented 1 year ago

@Sub6Resources

image

The 3.0.0-beta.2 version of flutter_html still does not solve this problem

zhourengui commented 1 year ago

I fixed this issue in pr. https://github.com/Sub6Resources/flutter_html/pull/1304

Sub6Resources commented 1 year ago

@zhourengui Good catch. I forgot this was a pre-1.0.0 version, so caret syntax only includes up to the next minor version.