Search
 
SCRIPT & CODE EXAMPLE
 

DART

call phone number flutter

import 'package:flutter/material.dart';
import 'package:flutter_phone_direct_caller/flutter_phone_direct_caller.dart';

void main() {
  runApp(Scaffold(
    body: Center(
      child: RaisedButton(
        onPressed: _callNumber,
        child: Text('Call'),
      ),
    ),
  ));
}

_callNumber() async{
  const number = '0911234567'; 
  bool res = await FlutterPhoneDirectCaller.callNumber(number);
}
Comment

flutter call phone number

// Call the launch method from url_launcher package:

launch("tel://214324234");
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter upgrade pubspec 
Dart :: flutter get available width 
Dart :: sort map keys dart 
Dart :: flutter sliver 
Dart :: aws ec2 upload file 
Dart :: dart object to map 
Dart :: how to show snackbar in flutter 
Dart :: message yes or not in dart 
Dart :: remove item form list by index dart 
Dart :: overflow box flutter 
Dart :: leading in flutter(drawer) 
Dart :: select date from datepicker in textfield flutter 
Dart :: flutter leading 
Dart :: Error: java.io.IOException: No such file or directory in android 11 
Dart :: show snackbar flutter 
Dart :: runapp in flutter 
Dart :: flutter color 
Dart :: DateFormat local fr flutter 
Dart :: flutter logo style 
Dart :: pass by reference in dart 
Dart :: How use late in Dart 
Dart :: ruby on rails db migrate 
Dart :: load svg in imageprovider flutter 
Dart :: how to iterate object in dart 
Dart :: flutter conditional parent widget 
Dart :: flutter list key value 
Dart :: convert to string flutter 
Swift :: conert data to string swift 
Swift :: get device name swift 
Swift :: pushviewcontroller swift autolayout 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =