How to make a phone call from a flutter app

后端 未结 7 862
迷失自我
迷失自我 2020-12-03 00:39

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

相关标签:
7条回答
  • Just url_launcher: ^ latest Version in Pubspec.yamal

    Note: Before Pub get or Upgrade delete Pubspec.lock some time it gives unwanted problems.

    Import package import 'package:url_launcher/url_launcher.dart';

    //for launching URL
    
    launchUrl("HTTP://website.com");
    
    
    // for dial phone number
    
    launchUrl("tel:+91963852741"); 
    
    
    // for sending email
    
    launchUrl("mailto:mail@gmail.com?subject=Meeting&body=Can we meet via Google Meet"); 
    
    0 讨论(0)
提交回复
热议问题