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 :: dart trim 
Dart :: flutter chip 
Dart :: flutter listtile selected 
Dart :: mainAxisAlignment vs crossAxisAlignment flutter 
Dart :: flutter refresh page 
Dart :: at this point the state of the widget element tree is no longer stable. flutter 
Dart :: flutter add text on image 
Dart :: dart split string 
Dart :: flutter icon logout 
Dart :: online dart compiler 
Dart :: dart comments 
Dart :: flutter onclick container 
Dart :: color textfield text flutter 
Dart :: flutter clipoval 
Dart :: dartlang tuple 
Dart :: find and update element in list dart 
Dart :: dart input int 
Dart :: What is Dart? 
Dart :: flutter pass onchanged callback in arguments 
Dart :: regex dart 
Dart :: flutter delete directory 
Dart :: flutter check null 
Dart :: dart anonymous function 
Dart :: show shadow on focus input flutter 
Dart :: list join dart 
Dart :: change notifier flutter example 
Dart :: difference between hot reload and hot restart in flutter 
Dart :: how to check string id is valid id in string file android studio 
Dart :: dart zip two lists 
Dart :: seach flutter 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =