flutter_dialpad 1.0.5 flutter_dialpad: ^1.0.5 copied to clipboard
A phone dialer widget that can be added to any Flutter Application to enable ability to dial a number. This could be combined with a voip application to enable placing calls.
import 'package:flutter/material.dart';
import 'package:flutter_dialpad/flutter_dialpad.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.black,
body: SafeArea(
child:
DialPad(
enableDtmf: true,
//outputMask: "(000) 000-0000",
hideSubtitle: false,
backspaceButtonIconColor: Colors.red,
buttonTextColor: Colors.white,
dialOutputTextColor: Colors.white,
keyPressed: (value){
print('$value was pressed');
},
makeCall: (number){
print(number);
}
)
),
),
);
}
}