Questions tagged [flutter-html]

For questions about the Flutter_HTML package: a Flutter widget rendering static HTML and CSS as Flutter widgets.

For questions related to the Flutter_HTML package: https://pub.dev/packages/flutter_html

A Flutter widget rendering static HTML and CSS as Flutter widgets.

For the Flutter cross-platform UI toolkit.

52 questions
12
votes
4 answers

Remove Flutter HTML widget's default padding

There is a default padding in flutter_html already when trying to parse text. Below is the difference between using HTML(data: ...) and Text(...) widgets. Top: HTML Widget, Bottom: Text Widget How can I remove the horizontal padding?
Mihail Iliev
  • 163
  • 1
  • 8
5
votes
2 answers

pubpspect get failed when adding flutter_html lib in flutter

I have tried to build app 'flutter_html: ^2.1.5" but I unable to build and getting below error in log. The current Flutter SDK version is 1.27.0-2.0.pre.1. Because flutter_app depends on flutter_html >=2.1.0 which requires Flutter SDK version…
Rajasekaran M
  • 2,478
  • 2
  • 20
  • 30
4
votes
2 answers

Import js.dart and html.dart for a mixed web / mobile flutter project

I'm using Flutter 2.5.2. I have a project which is to be used for both web and mobile (Android / iOS). There is one particular widget where I need to use one version of the widget when deploying for web, which uses the JS and HTML packages. When…
James Allen
  • 6,406
  • 8
  • 50
  • 83
3
votes
4 answers

How to render full HTML document with flutter_html package?

I'm trying to render a full HTML document in a scrollable view but I always got this error ════════ Exception caught by rendering library ═════════════════════════════════ RenderBox was not laid out: _RenderSingleChildViewport#1741c…
PaxTiz
  • 31
  • 1
  • 2
3
votes
1 answer

why flutter image did not release the memory when widget closed

I am facing a problem recently that my flutter(2.2.0) app always crashed after running a while, then I am debbuing and found that when the article detail page contains many image, close and reopen for many times, the memory are always increase, why…
Dolphin
  • 29,069
  • 61
  • 260
  • 539
1
vote
1 answer

I am having problem on flutter after updating to latest flutter version

I have updated my flutter version and I am getting following errors. Other than that everything is working fine. The named parameter 'tagsList' isn't defined. The getter 'tags' isn't defined for the type 'Html'. The named parameter 'customRenders'…
Punkkk
  • 43
  • 7
1
vote
1 answer

Want to display HTML data that contains both nested and non-nested tables within my Flutter application

I am currently using a plugin (flutter_html 2.2.1) to display HTML data that contains both nested and non-nested tables within my Flutter application. The code I have provided below is used to display the tables, but it only allows me to show the…
1
vote
1 answer

anchor element have style doesn't work in Html() from flutter_html

so I want to show like button but it doesn't show that element when I run the emulator. and only show like blank space at that field. the code like this, HTML:

1
vote
1 answer

Flutter: Override pub package with a specific commit while retaining dependencies

We're having a problem with the flutter_html package in our project since upgrading flutter, but there's a potential fix introduced as a PR by other github user. The problem is, I can't get their changes to override the base package, namely because…
TDuff
  • 78
  • 7
1
vote
1 answer

Flutter plugin - mobile fails to compile because of 'dart:html' but plugin only supports web

Since there is no package to implement AdSense in Flutter, I decided to create a local plugin. It's extremely simple, the widget is an IFrameElement. I made sure when creating the plugin to specify that it only supports web because IFrameElement…
1
vote
3 answers

How to use read more option in flutter html?

Here I want to know about how to use read more option for text in flutter html. I did not find any solution. This is my code Html( data: "${productDetailsData['description']}", tagsList: Html.tags..addAll(["bird",…
Deepak
  • 1,664
  • 3
  • 19
  • 52
1
vote
3 answers

How can I cache Network image received from HTML(format) API response? I want to cache it so I can display it even if there is no internet

I am trying to cache an image. The problem is that I receive it over an API whose response is in html format. I have simply used flutter_html package to render the response in my app. I save the response entirely in shared_preferences and show it to…
Ashish
  • 45
  • 4
1
vote
2 answers

Html table not display properly while too many or table text is too long in flutter

I'm trying to display an HTML table in my app but arise an overflow issue. I'm using flutter_html dependence. This is my HTML table code

Destruction of the ciliary ganglion interrupts postganglionic parasympathetic…

Abhi S
  • 250
  • 2
  • 18
1
vote
0 answers

Instance of 'Future

This my future fuction. Future getSuburb() async { var url = 'https://loadshedding.eskom.co.za/LoadShedding/GetScheduleM/1062781/8/1/703'; final response = await http.get( Uri.parse(url), headers: {}, ); print('URL…
1
vote
0 answers

Flutter Html Change Color of Number of Ordered List Items

I want to change the color from the number of the items of the OrderedList . But I do not find a way to do this. I can set the list style to example dots or numbers like in the following code example, but I can not find a way to change the…
julienduchow
  • 1,026
  • 1
  • 11
  • 29
1
2 3 4