web_browser 0.1.0 copy "web_browser: ^0.1.0" to clipboard
web_browser: ^0.1.0 copied to clipboard

outdated

Cross-platform web browser and web content widgets for Flutter applications.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:web_browser/html.dart' as html;
import 'package:web_browser/web_browser.dart';

// Running this example:
//
//     flutter run
//     flutter run -d chrome
//
//
void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Column(
        children: [
          Text(
            'WebBrowser:',
            textScaleFactor: 2.0,
          ),
          SizedBox(
            width: 300,
            height: 200,
            child: WebBrowser(
              initialUrl: 'https://dart.dev/',
            ),
          ),
          Text(
            'WebText:',
            textScaleFactor: 2.0,
          ),
          SizedBox(
            width: 300,
            height: 200,
            child: WebText('<h1>Hello world!</h1>'),
          ),
          Text(
            'WebNode:',
            textScaleFactor: 2.0,
          ),
          SizedBox(
            width: 300,
            height: 200,
            child: WebNode(
              html.HeadingElement.h1()..appendText('Hello world!'),
            ),
          ),
        ],
      ),
    ),
  ));
}
70
likes
0
pub points
89%
popularity

Publisher

verified publisherdint.dev

Cross-platform web browser and web content widgets for Flutter applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta, universal_html, webview_flutter

More

Packages that depend on web_browser