Member-only story

Handling Changes in flutter_html and Using Custom Tags in Flutter

Komal Thakkar
3 min readOct 8, 2024

--

A guide to upgrading methods and implementing custom HTML tags in Flutter apps

Recently, while working on one of my client’s projects, I encountered an issue with the flutter_html plugin. I hadn't worked on the project for a while, and when I ran it, there were errors because the Flutter SDK had been updated, which didn’t support older plugin versions anymore. After upgrading the plugin, I faced several new errors due to deprecated methods. Let me walk you through how I handled these changes.

What is flutter_html?

flutter_html is a package in Flutter that makes it easy to display HTML content in your app. Instead of writing a lot of code to display things like text, images, or links in a specific format, flutter_html does this for you.

Here’s what you can do with it:

  • Display HTML content like paragraphs, headings, links, and images in your app, just like on a website.
  • You can also change the style of the content, such as adjusting text color, size, or alignment to match your app’s design.
  • It even supports embedding videos or audio players directly in your app.
  • If your app loads content from the web or an API, flutter_html helps you display that content…

--

--

Komal Thakkar
Komal Thakkar

Written by Komal Thakkar

Android Developer, Flutter Developer, Blogger

No responses yet