weburl_calling 0.0.1 copy "weburl_calling: ^0.0.1" to clipboard
weburl_calling: ^0.0.1 copied to clipboard

A flutter widget for Webview rendering

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:weburl_calling/weburl_calling.dart';


void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  final MyWebViewPlugin _webViewPlugin = MyWebViewPlugin();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('WebView Example'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            // Example URL
            const String url = 'https://flutter.dev';
            // Launch the WebView
            await _webViewPlugin.launchWebView(context, url);
          },
          child: Text('Open WebView'),
        ),
      ),
    );
  }
}
1
likes
150
points
18
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A flutter widget for Webview rendering

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on weburl_calling