9to5Answer
  • Programming Language
    Abap
    ActionScript
    Assembly
    BASIC
    C
    C#
    C++
    Clojure
    Cobol
    CSS
    Dart
    Delphi
    Elixir
    Erlang
    F#
    Fortran
    Go
    Groovy
    Haskell
    Html
    Java
    Javascript
    Julia
    Kotlin
    Lisp
    Lua
    Matlab
    Objective-C
    Pascal
    Perl
    PHP
    Prolog
    Python
    R
    Ruby
    Rust
    Scala
    Scheme
    Shell/Bash
    SQL
    Swift
    TypeScript
    VBA
  • Framework
    AngularJS
    Backbone
    Bootstrap CSS
    Bootstrap Javascript
    Bulma
    CakePHP
    CodeIgniter
    Django
    Drupal
    Ember
    Express
    Flask
    Flutter
    Foundation
    Ionic
    jQuery
    Laravel
    Materialize
    Next.js
    Node.js
    Nuxt.js
    React
    Semantic UI
    Spring
    Symfony
    Unity
    Vaadin
    Vue
    Wordpress
    Yii
    Zend
  • Categories
  1. How to load a HTML in String to WebView in Flutter

How to load a HTML in String to WebView in Flutter

html string flutter webview webview-flutter
2,422

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),
              ));
Share:
2,422
Abdulaziz Abduqodirov
Author by

Abdulaziz Abduqodirov

Updated on November 25, 2022

Comments

  • Abdulaziz Abduqodirov
    Abdulaziz Abduqodirov 6 months

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

Recents

Why Is PNG file with Drop Shadow in Flutter Web App Grainy?
How to troubleshoot crashes detected by Google Play Store for Flutter app
Cupertino DateTime picker interfering with scroll behaviour
Why does awk -F work for most letters, but not for the letter "t"?
Flutter change focus color and icon color but not works
How to print and connect to printer using flutter desktop via usb?
Critical issues have been reported with the following SDK versions: com.google.android.gms:play-services-safetynet:17.0.0
Flutter Dart - get localized country name from country code
navigatorState is null when using pushNamed Navigation onGenerateRoutes of GetMaterialPage
Android Sdk manager not found- Flutter doctor error
Flutter Laravel Push Notification without using any third party like(firebase,onesignal..etc)
How to change the color of ElevatedButton when entering text in TextField

Related

Get Json response when Webview redirect to another page in Flutter
Show downloaded temporary local file(png,jpg,pdf,rtf) in webview using flutter
how to pass data from parent page to webview page in flutter?
Flutter WebView plugin crashes the app when installed on iOS 14+
Flutter / webview_flutter too big to fit screen
What JavaScript/CSS can I inject into my WebView to invert only the background of the page and white text?
Will there be an offline webview from local asset html-files in Flutter?
OS Error: No such file or directory, errno = 2
How to get javascript console.log in flutter webview
Getting error while implementing web-view in flutter applications
  • About us
  • /
  • Privacy Policy
  • /
  • Terms of use
  • /
  • Contact & Advertising
  • /
  • License
  • /
  • Press

© 2023 9to5Answer. All rights reserved.