flutter_launcher_plus

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter launcher plus

flutter_launcher_plus #
Plugin to launch url and map coordinates
Getting Started #
Add into your pubspec.yaml
==========================
flutter_launcher_plus:
copied to clipboard
Launch any url
=========================================================

Future<void> launchUrl(String websiteUrl) async {
await _channel.invokeMethod('launchUrl',<String, String>{
'website_url':websiteUrl
});
}

ElevatedButton(
onPressed: (){
launchUrl("http://www.google.com");
},
child: Text("Launch Url")
)

copied to clipboard
Draw route from current location
==========================================================
Future<void> drawRouteFromCurrentLocation(String latitude, String longitude) async {
await _channel.invokeMethod('drawRouteFromCurrentLocation',<String, String>{
'latitude':latitude,
'longitude':longitude,
});
}
copied to clipboard
Draw route between two locations
==========================================================
Future<void> drawRouteBetweenTwoLocation(String startLatitude, String startLongitude, String endLatitude, String endLongitude) async {
await _channel.invokeMethod('drawRouteBetweenTwoLocation',<String, String>{
'startLatitude':startLatitude,
'startLongitude':startLongitude,
'endLatitude':endLatitude,
'endLongitude':endLongitude,
});
}
copied to clipboard
Dial any number
===============================================================
Future<void> dialNumber(String number) async {
await _channel.invokeMethod('dialNumber',<String, String>{
'number':number,
});
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.