phone_formatter 0.0.2+2
phone_formatter: ^0.0.2+2 copied to clipboard
A simple and flexible phone number formatter for Flutter, supporting mask and set of masks (dynamic country code detection).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add phone_formatterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
phone_formatter: ^0.0.2+2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:phone_formatter/phone_formatter.dart';