libphonenumber_plugin

Last updated:

0 purchases

libphonenumber_plugin Image
libphonenumber_plugin Images
Add to Cart

Description:

libphonenumber plugin

libphonenumber_plugin #
Flutter plugin for Google libphonenumber.
⚠️ Notice #
This plugin has similar implementation with libphonenumber.

This plugin now has support for Android, iOS and Web,

Usage #
To use this plugin, add libphonenumber_plugin: ^any as a dependency in your pubspec.yaml file.

⚠️ This plugin might merge with the original libphonenumber for Flutter in future, for now no info.

Android and iOS Usage #
This plugin now supports Android and iOS.

Also For Stable Android and iOS implementation use libphonenumber, since it was inspired by and has similar implementation with libphonenumber.

Web Usage #
In your app directory, edit web/index.html to add the following

<!DOCTYPE html>
<html>
<head>
...
</head>
<body>

...

<script src="assets/packages/libphonenumber_plugin/js/libphonenumber.js"></script>
<script src="assets/packages/libphonenumber_plugin/js/stringbuffer.js"></script>

...

<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
copied to clipboard
Using the plugin #
Once you have added libphonenumber_plugin plugin and edit web/index.html, you should be able to use the
import 'package:libphonenumber_plugin/libphonenumber_plugin.dart';
copied to clipboard
or any other source library available later on
Available Methods #
For available methods see libphonenumber_platform_interface
Future Works 🚀 #

Support for Windows and MacOS with Dart FFI
Merge with the original libphonenumber for Flutter in future, for now no info.

Contributions #
If you encounter any problem or the library is missing a feature feel free to open an issue. Feel free to fork, improve the plugin and make pull request.
Contributors #



Made with contributors-img.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.