flutter_native_html_view 1.0.0 copy "flutter_native_html_view: ^1.0.0" to clipboard
flutter_native_html_view: ^1.0.0 copied to clipboard

outdated

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 =
      '<html><body>hello<details>\n<summary>\nSome explanation</summary>\n<p>'
      'This text will be hidden</p>\n</details><br/><a href="https://www.mta.tv"'
      '>www.mta.tv</a></body></html>';

  @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);
          },
        ),
      ),
    );
  }
}
4
likes
30
pub points
42%
popularity

Publisher

verified publishermta.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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_native_html_view