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

A web browser widget. Unlike webview_flutter, comes with cross-platform navigation and URL sharing widgets. Works in Android, iOS, browsers, and other platforms.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:web_browser/web_browser.dart';

void main() {
  const app = CupertinoApp(
    title: 'Example',
    debugShowCheckedModeBanner: false,
    home: CupertinoPageScaffold(
      child: SafeArea(
        child: Browser(
          initialUriString: 'https://flutter.dev/',
        ),
      ),
    ),
  );
  // const app = MaterialApp(
  //   title: 'Example',
  //   debugShowCheckedModeBanner: false,
  //   home: Scaffold(
  //     body: SafeArea(
  //       child: Browser(
  //         initialUriString: 'https://flutter.dev/',
  //       ),
  //     ),
  //   ),
  // );

  runApp(app);
}
69
likes
120
pub points
90%
popularity

Publisher

verified publisherdint.dev

A web browser widget. Unlike webview_flutter, comes with cross-platform navigation and URL sharing widgets. Works in Android, iOS, browsers, and other platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

cupertino_icons, flutter, share_plus, webview_flutter, webview_flutter_android, webview_flutter_web, webview_flutter_wkwebview

More

Packages that depend on web_browser