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
You should add this in your pubspec.yaml => url_launcher: ^5.0.2 then you click Packages get .
in your code you add the import : import 'package:url_launcher/url_launcher.dart' as UrlLauncher; Hope it works =)
import 'package:url_launcher/url_launcher.dart' as UrlLauncher;
UrlLauncher.launch('tel:+${p.phone.toString()}')
//if mail
UrlLauncher.launch('mailto:${p.email}'),