web_node 0.1.0 copy "web_node: ^0.1.0" to clipboard
web_node: ^0.1.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:flutter_localizations/flutter_localizations.dart';
import 'package:universal_html/html.dart' as html;
import 'package:web_node/web_node.dart';

void main() {
  runApp(MaterialApp(
    title: 'Example',
    localizationsDelegates: [
      GlobalMaterialLocalizations.delegate,
    ],
    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
0
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

License

unknown (license)

Dependencies

flutter, meta, universal_html, webview_flutter

More

Packages that depend on web_node