flutter_super_html_viewer 0.0.1 copy "flutter_super_html_viewer: ^0.0.1" to clipboard
flutter_super_html_viewer: ^0.0.1 copied to clipboard

A Flutter plugin that provides a HtmlViewer widget on multiple platforms

Flutter Super HtmlViewer #

A Flutter plugin that provides a HtmlViewer widget on multiple platforms

Usage #

Add the package to pubspec.yaml

dependencies:
  flutter_super_html_viewer: x.x.x

Import it

// On Mobile
import 'package:flutter_super_html_viewer/view/mobile/mobile_html_content_viewer.dart';
// On Web
import 'package:flutter_super_html_viewer/view/web/web_html_content_viewer.dart';

Use the widget

  • On Mobile
MobileHtmlContentViewer(
    contentHtml: '<p>Here is some text</p> with a <a href="https://github.com/dab246/flutter_super_html_viewer">link</a>.',
    heightContent: MediaQuery.of(context).size.height,
    mailtoDelegate: (uri) async {},
    onScrollHorizontalEnd: (leftDirection) {},
    onWebViewLoaded: (isScrollPageViewActivated) {},
)
  • On Web
WebHtmlContentViewer(
    widthContent: MediaQuery.of(context).size.width,
    heightContent: MediaQuery.of(context).size.height,
    contentHtml: '<p>Here is some text</p> with a <a href="https://github.com/dab246/flutter_super_html_viewer">link</a>.',
    controller: WebHtmlContentViewerController(),
    mailtoDelegate: (uri) {}
)
17
likes
0
pub points
92%
popularity

Publisher

unverified uploader

A Flutter plugin that provides a HtmlViewer widget on multiple platforms

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter, universal_html, url_launcher, webview_flutter

More

Packages that depend on flutter_super_html_viewer