flutter_launcher_plus 0.0.6 copy "flutter_launcher_plus: ^0.0.6" to clipboard
flutter_launcher_plus: ^0.0.6 copied to clipboard

Plugin to launch url and map coordinates

flutter_launcher_plus #

Plugin to launch url and map coordinates

Getting Started #

Add into your pubspec.yaml
==========================
flutter_launcher_plus:
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")
)

Draw route from current location
==========================================================
  Future<void> drawRouteFromCurrentLocation(String latitude, String longitude) async {
    await _channel.invokeMethod('drawRouteFromCurrentLocation',<String, String>{
      'latitude':latitude,
      'longitude':longitude,
    });
  }
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,
    });
  }
Dial any number
===============================================================
Future<void> dialNumber(String number) async {
    await _channel.invokeMethod('dialNumber',<String, String>{
      'number':number,
    });
  }
4
likes
150
points
107
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin to launch url and map coordinates

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_launcher_plus