url_launcher_plus 1.0.0 copy "url_launcher_plus: ^1.0.0" to clipboard
url_launcher_plus: ^1.0.0 copied to clipboard

outdated

Customizable url launcher with AppBar for navigation and also a refresh button available

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Url Launcher Plus Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  void navigate(BuildContext context) {
    Navigator.push(context, MaterialPageRoute(
      builder: (context) {
        return const UrlLauncher(
          launchUrl: "https://google.com/",
          backgroundColor: Colors.blue,
        );
      },
    ));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
          child: Center(
        child: ElevatedButton.icon(
          onPressed: () {},
          label: const Text("Launch Url"),
          icon: const Icon(Icons.ads_click),
        ),
      )),
    );
  }
}
4
likes
0
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Customizable url launcher with AppBar for navigation and also a refresh button available

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, webview_flutter, webview_flutter_android

More

Packages that depend on url_launcher_plus