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

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

flutter_native_html_view #

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

Getting Started #

Use the FlutterNativeHtmlView widget as below:

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);
          },
        ),
      ),
    );
  }
}
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