easy_url_launcher 0.0.2
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");
}
),
]
),