web_node 0.2.0 copy "web_node: ^0.2.0" to clipboard
web_node: ^0.2.0 copied to clipboard

discontinued
outdated

A cross-platform widget for displaying DOM nodes (iframes, etc.) in Flutter applications. Uses real DOM nodes in browsers and webview_flutter in Android/iOS.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:universal_html/html.dart' as html;
import 'package:web_node/web_node.dart';

void main() {
  runApp(
    MaterialApp(
      title: 'Example',
      home: Scaffold(
        body: SafeArea(
          child: WebNode(
            node: html.DivElement()
              ..style.textAlign = 'center'
              ..append(
                html.HeadingElement.h1()..appendText('Hello world!'),
              )
              ..append(html.AnchorElement()
                ..href = 'https://dart.dev/'
                ..appendText('A link to dart.dev')),
          ),
        ),
      ),
    ),
  );
}
2
likes
70
pub points
41%
popularity

Publisher

unverified uploader

A cross-platform widget for displaying DOM nodes (iframes, etc.) in Flutter applications. Uses real DOM nodes in browsers and webview_flutter in Android/iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, meta, universal_html, webview_flutter

More

Packages that depend on web_node