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.75k stars 805 forks source link

Failed to compile application. #1398

Open eqrakhattak opened 5 months ago

eqrakhattak commented 5 months ago

Flutter Version

image

Flutter Doctor image

Description: I'm working on Flutter web which compiles correctly but as soon as I import flutter_html, it shows the following errors:

Launching lib\main.dart on Chrome in debug mode... Waiting for connection from debug service on Chrome...

I have added flutter_html: ^2.2.1 in my pubspec.yaml file. Imported import 'package:flutter_html/flutter_html.dart'; Used HTML widget as:

Html(
     data: """<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/0Lg3GfMqCQGbCGAv0oQnpW?utm_source=generator" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe> """,
),
arifikhsan commented 4 months ago

upgrade the version to flutter_html: ^3.0.0-alpha.3 fixed the error for me