1

I have some HTML code which is in String variable, not in a file. I want to load this String-HTML on WebView

1 Answer 1

1

use this package flutter_html: ^1.0.0

import 'package:flutter_html/flutter_html.dart';

SingleChildScrollView(
       child: Html(
               data: "<div></div>", // Your Html code over here
                padding: EdgeInsets.all(8.0),
              ));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.