Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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);
}
 
PREVIOUS NEXT
Tagged: #call #phone #number #flutter
ADD COMMENT
Topic
Name
3+7 =