flutter_native_html_view 1.0.1
flutter_native_html_view: ^1.0.1 copied to clipboard

Flutter Android iOS

A flutter plugin for rendering local HTML string data using web views. Uses WebView on Android and WKWebView on iOS.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_native_html_view/flutter_native_html_view.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  String _htmlString = 'some html data here';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Native HTML View'),
        ),
        body: FlutterNativeHtmlView(
          htmlData: _htmlString,
          onLinkTap: (String url) {
            print(url);
          },
          onError: (String message) {
            print(message);
          },
        ),
      ),
    );
  }
}
3
likes
90
pub points
71%
popularity

Publisher

mta.tv

A flutter plugin for rendering local HTML string data using web views. Uses WebView on Android and WKWebView on iOS.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_native_html_view