web_browser 0.7.0 web_browser: ^0.7.0 copied to clipboard
A cross-platform Flutter widget for displaying websites and other web content. Has navigation Cupertino/Material buttons and takes care of complex platform differences.
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);
}