N
N
Northwood_FX2019-07-14 23:44:13
Dart
Northwood_FX, 2019-07-14 23:44:13

Is there an option in Flutter to open an html file locally from resources?

Is there such a possibility in Flutter to open an html file from the resources of the application itself, and not from the network?
- Essence of the question: I am writing an (offline) recipe book application (so far only for Android), there is a lot of text and often this text needs to be formatted for beauty (font, color, underlining, etc.), it is convenient to make tags in html, and then open in application. Can you advise something on how to make a book application differently if this option is not suitable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KnightForce, 2020-02-25
@KnightForce

So through WebView it is possible.

S
SoFo12, 2020-04-29
@SoFo12

You add a folder with the necessary files to the project, and in pubspec.yaml in assets you specify the path. Further through webview it is possible to load html locally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question