I try to make a phone call from my Flutter app. With the following code:
UrlLauncher.launch('tel: xxxxxxxx');
I found this Function on the GitHub flutter repo: https://github.com/flutter/flutter/issues/4856
But this doesn't work for me. Is this Function still in Flutter and in which package? Or is there a better option to do a phone call from my app?
Best Answer
Call the
launch
method from url_launcher package:Here's the complete code:
Also you can import it and then use
Be sure to include an entry for it in the pubspec.yaml file, in the dependencies section: