fwfh_webview 0.14.2 copy "fwfh_webview: ^0.14.2" to clipboard
fwfh_webview: ^0.14.2 copied to clipboard

WidgetFactory extension to render IFRAME with the official WebView plugin.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_webview/fwfh_webview.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'fwfh_webview',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('WebViewFactory Demo'),
        ),
        body: Center(
          child: HtmlWidget(
            '<iframe src="https://www.youtube.com/embed/jNQXAC9IVRw"></iframe>',
            factoryBuilder: () => MyWidgetFactory(),
          ),
        ),
      ),
    );
  }
}

class MyWidgetFactory extends WidgetFactory with WebViewFactory {}
33
likes
0
pub points
96%
popularity

Publisher

verified publisherdaohoangson.com

WidgetFactory extension to render IFRAME with the official WebView plugin.

Repository (GitHub)
View/report issues

Topics

#iframe #fwfh

Funding

Consider supporting this project:

patreon.com
buymeacoffee.com

License

unknown (LICENSE)

Dependencies

flutter, flutter_widget_from_html_core, logging, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on fwfh_webview