easy_url_launcher 0.0.2 copy "easy_url_launcher: ^0.0.2" to clipboard
easy_url_launcher: ^0.0.2 copied to clipboard

A simple flutter pakage for launch urls in android and ios

A flutter pakage based on url_launcher pakage for call,sms,email and launch url in browser or app with url parameters and launch mode as platform default or platform specific mode for web

Features #

  • Very easy to use
  • Support Android & IOS

Getting started #

Add pakage to your project by running follwing command in your terminal

flutter pub add easy_url_launcher

Import pakage

import 'pakage:easy_url_launcher/easy_url_launcher.dart';

Usage #

Column(
    childerin: [
        TextButton(
            child: Text("Open url"),
            onPressed: ()async{
                EasyLauncher.url(url:"https://pub.dev");
            }
        ),

        TextButton(
            child: Text("Open url in default app"),
            onPressed: ()async{
                EasyLauncher.url(url:"https://www.instagram.com",mode: LaunchMode.externalApplication);
            }
        ),

        MaterialButton(
                color: Colors.indigo,
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.email(
                      email: "[email protected]",
                      subject: "Test",
                      body: "Hello Flutter developer");
                },
                child: const Text("Send an email"),
              ),

    MaterialButton(
        child:Text("Call number"),
        onPressed: ()async {
            EasyLauncher.call(number: "0088980999");
        }
    ),

    MaterialButton(
        child:Text("Call USSD"),
        onPressed: ()async {
            EasyLauncher.call(number: "*#06#");
        }
    ),

    MaterialButton(
        child:Text("Send sms"),
        onPressed: ()async {
            EasyLauncher.sms(number: "555",message: "Hello");
        }
    ),

    ]
),
39
likes
0
points
293
downloads

Publisher

unverified uploader

Weekly Downloads

A simple flutter pakage for launch urls in android and ios

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, url_launcher

More

Packages that depend on easy_url_launcher