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

Links issues in iOS #1309

Open if95 opened 1 year ago

if95 commented 1 year ago

Hello I am using flutter_html in my flutter app but I noticed an issue when the rendered text has a link.

it appears some weird lines as background after the links when I tested it on iOS real device.

I tried to change the link color, add a background but it didn't work.

photo_1444-11-19 14 48 57

Sub6Resources commented 1 year ago

Very strange. I can't get this to happen. Can you provide code to reproduce?

if95 commented 1 year ago

I am using it to display a Wordpress blog post.

Html(
                          data: widget.post.content ,
                          style: {
                            "body": Style(
                              fontSize: FontSize(18.0),
                              fontWeight: FontWeight.bold,
                            ),
                          },
                          onAnchorTap: (url, _, __, ___) async {
                            if (await canLaunch(url)) {
                              await launch(
                                url,
                              );
                            }
                          },

                        ),
Sub6Resources commented 1 year ago

It may be an issue with Impeller? Can you share the output of flutter doctor? Additionally, which flutter_html version are you seeing this on?

if95 commented 1 year ago
Screenshot 2023-06-08 at 10 09 24 PM Screenshot 2023-06-08 at 10 08 29 PM
if95 commented 1 year ago

I also used version ^0.8.2 and got the same result

Sub6Resources commented 1 year ago

Hmm, still strange. What type of iOS device? Does the same thing happen on a simulator?

if95 commented 1 year ago

No, it never happened on a simulator, just on a real device. It appeared when I tested it on iPhone 11 and iPhon 14 real devices.

if95 commented 1 year ago

You mentioned the Impeller, should I disable it?

Sub6Resources commented 1 year ago

It's worth a try. I haven't had a chance to pull out my physical iOS test device to try it myself yet.

Sembauke commented 1 year ago

I am using launchUrlString method from url_launcher: ^6.0.10 to launch links.

if95 commented 1 year ago

I tried to disable the Impeller but nothing change