Open luis901101 opened 1 year ago
I have also encountered this issue and after some more testing it seems that the issue is related to the textOverflow parameter. If you remove it (or just change it from ellipsis to anything else) it does not crash anymore.
I have also encountered this issue and after some more testing it seems that the issue is related to the textOverflow parameter. If you remove it (or just change it from ellipsis to anything else) it does not crash anymore.
Yeah I know, but in my use case I need to use TextOverflow.ellipsis. In fact using textoverflow ellipsis is a very common use case so I thinks it’s important to fix this for the next alpha release
I agree, it is also needed for us, just wanted to make sure that it is visible that there are more people having this problem 😄
I have the same problem
I have the same problem, any alternative solutions ?
@balaji101010 alternative solution for me so far is to use: flutter_html: 3.0.0-alpha.5
It still crashses in 3.0.0-alpha.5
@luis901101
@balaji101010 check you are using fixed version, note it is flutter_html: 3.0.0-alpha.5
without ^
. And also check your pubspec.lock
make sure it is using the fixed version. You can delete .lock and run flutter pub get
Pubspeck.lock
flutter_html:
dependency: "direct main"
description:
name: flutter_html
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0-alpha.5"
Pubscpec.yaml
flutter_html: 3.0.0-alpha.5
Still it crashes, its ok thanks for your time! I prefer using stable version instead of alpha version. I will wait
facing same issue. any solution/help.
I wasn't able to reproduce the crash, but I got an ASSERT: 784.000000 != 0.000000
in my console and maxLines
wasn't handled correctly. Seems like there's a bad engine issue. Hope to look into it further soon.
Describe the bug:
Using version
flutter_html: 3.0.0-alpha.6
when I set:App crashes, it closes abruptly. This happened to me in a project where I have a widget to show a grid with several "user reviews", so as reviews are html formatted text and are commonly long texts, lets say about 300 chars, so to make the text fit into the small grid view I use
maxLines
andtextOverflow
. If I use previous alpha versionflutter_html: 3.0.0-alpha.5
I don't have any crash.HTML to reproduce the issue:
Html is really simple, as far as I have tested just by having
<p>
tag is enough for crashing.Html
widget configuration:Expected behavior:
App don't crash
Device details and Flutter/Dart/
flutter_html
versions:Tested in iOS(15.7.1 and 16.1.1) and Android(from 8 to 12) devices,
flutter doctor -v
logspubspec.yaml
Stacktrace/Logcat
Logs from iOS device:
Logs from Android device:
Additional info:
Sample code to reproduce the issue
A picture of a cute animal (not mandatory but encouraged)
And the most important: