Skip to content

RaiAnsar/flutter_dialpad_plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_dialpad_plus

This package is fork of package flutter_dialpad with additional features and coming updates which are mentioned at the bottom of documentation.

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 or number can be provided to any API e.g WhatsApp API.

This is a purely Dart widget with no dependency on Android or iOS except for the flutter_dtmf package it uses for DTMF tone generation on pressing a button. You can turn it off my setting enableDtmf: false

Note:

Scaffold backgroundColor: Colors.black,is perfect for default view, unless you want to customize it give it a go.

Getting Started

Example Code

@override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: SafeArea(
          child: Column(
            children: <Widget>[
              SizedBox(
                height: 140,
              ),
              DialPad(
                  // keyPadTextColor: Colors.lightBlue,
                  //   dialButtonIconColor: Colors.indigo,
                  //  keyPadColor: Colors.lightBlue,
                  outputMask: //Visual formatting of input
                      "0000 000 00 00", //Here you can mask the display of inserted number. unformatted text won't show up.
                  dialButtonColor: Colors.greenAccent[400],
                  dialButtonIconColor: Colors.yellowAccent[100],
                  buttonIcon: Icons.textsms,
                  enableDtmf: true,
                  backspaceButtonIconColor: Colors.blue,
                  useNumber: (number) {
                    //use this `number` variable for any reference or implementation.
                    print(number);
                  }),
            ],
          ),
        ),
      ),
    );
  }
  

Screenshots

Android Screenshot iOS Screenshot
Android Screenshot iOS Screenshot

TODO:

  • Shrink Output to Fit
  • Support for Local Numbers in Text Input Mask
  • Long Tapping 0 will return +.
  • Customized Masking, Depending on input
  • Dark & Light Themes.
  • Support Number Pasting.

flutter_dialpad + Improvements:

  • Button Icon is fully customizable

  • Every color is customizable

  • Long Pressing BackSpace clears Complete input

Interested in contribution?

Every pull request is very welcome. . .

Simply fork the repo at GitHub and after making appropriate changes create a pull request with completely describing what changes were made by You.

Releases

No releases published

Packages

No packages published

Languages

  • Dart 92.5%
  • Kotlin 3.0%
  • Swift 2.9%
  • HTML 1.3%
  • Objective-C 0.3%