html_to_flutter_iframe

Last updated:

0 purchases

html_to_flutter_iframe Image
html_to_flutter_iframe Images
Add to Cart

Description:

html to flutter iframe

html_to_flutter_iframe #


html_to_flutter_iframe is a Flutter package that uses the flutter_inappwebview package to render iframes within Flutter applications. This extension package works with the html_to_flutter parent package.
Features #

Convert HTML iframe elements to Flutter widgets.
Render iframes using flutter_inappwebview.

Usage #
import 'package:flutter/material.dart';
import 'package:html_to_flutter/html_to_flutter.dart';
import 'package:html_to_flutter_iframe/html_to_flutter_iframe.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('HTML to Flutter Iframe Demo'),
),
body: Html(
data: """
<div>
<h1>Sample Iframe</h1>
<iframe src="https://www.example.com" width="600" height="400"></iframe>
</div>
""",
extensions: const [
IframeExtension(),
],
),
),
);
}
}
copied to clipboard
Installation #
Add html_to_flutter and html_to_flutter_iframe to your pubspec.yaml:
dependencies:
html_to_flutter: ^1.0.0
html_to_flutter_iframe: ^1.0.0
copied to clipboard
Then run flutter pub get to install the packages.
License #
This project is licensed under the MIT License - see the LICENSE file for details.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.