Thanks to visit codestin.com
Credit goes to github.com

Skip to content

muslimtv/flutter_native_html_view

Repository files navigation

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

About

A native web view for rendering HTML string data in Flutter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •