another_intl_phone_number_input 0.0.1 copy "another_intl_phone_number_input: ^0.0.1" to clipboard
another_intl_phone_number_input: ^0.0.1 copied to clipboard

A simple and customizable flutter package for inputting phone number in intl / international format uses Google's libphonenumber with ability to change country code manually using keyboard.

60/ 160
pub points
14
downloads

We analyzed this package 4 days ago, and awarded it 60 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

1 out of 13 API elements (7.7 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: another_intl_phone_number_input, another_intl_phone_number_input.AnotherInternationalPhoneNumberInput, another_intl_phone_number_input.AnotherInternationalPhoneNumberInput.AnotherInternationalPhoneNumberInput.new, another_intl_phone_number_input.AnotherInternationalPhoneNumberInput.countries, another_intl_phone_number_input.AnotherInternationalPhoneNumberInput.formatInput.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:another_intl_phone_number_input/another_intl_phone_number_input.dart that imports:
  • package:another_intl_phone_number_input/src/widgets/input.dart that imports:
  • package:another_intl_phone_number_input/src/utils/formatters/phone_formatter.dart that imports:
  • package:another_intl_phone_number_input/src/utils/phone_number_util.dart that imports:
  • package:libphonenumber_plugin/libphonenumber_plugin.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Linux`.

Because:

  • package:another_intl_phone_number_input/another_intl_phone_number_input.dart that imports:
  • package:another_intl_phone_number_input/src/widgets/input.dart that imports:
  • package:another_intl_phone_number_input/src/utils/formatters/phone_formatter.dart that imports:
  • package:another_intl_phone_number_input/src/utils/phone_number_util.dart that imports:
  • package:libphonenumber_plugin/libphonenumber_plugin.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `macOS`.

Because:

  • package:another_intl_phone_number_input/another_intl_phone_number_input.dart that imports:
  • package:another_intl_phone_number_input/src/widgets/input.dart that imports:
  • package:another_intl_phone_number_input/src/utils/formatters/phone_formatter.dart that imports:
  • package:another_intl_phone_number_input/src/utils/phone_number_util.dart that imports:
  • package:libphonenumber_plugin/libphonenumber_plugin.dart that declares support for platforms: Android, iOS, Web.
Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 7 issues. Showing the first 2:

ERROR: The method 'hashValues' isn't defined for the type 'Country'.

lib/src/models/country.dart:54:23

   ╷
54 │   int get hashCode => hashValues(alpha2Code, alpha3Code, dialCode);
   │                       ^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/country.dart

WARNING: Unused import: 'package:flutter/rendering.dart'.

lib/src/models/country.dart:1:8

  ╷
1 │ import 'package:flutter/rendering.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/country.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
collection ^1.15.0 1.19.1 1.19.1
country_picker ^2.0.15 2.0.27 2.0.27
equatable ^2.0.3 2.0.8 2.0.8
libphonenumber_plugin ^0.2.3 0.2.5 0.3.3
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
js - 0.6.7 0.7.2 Discontinued
libphonenumber_platform_interface - 0.3.1 0.4.2
libphonenumber_web - 0.2.0+1 0.3.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
plugin_platform_interface - 2.1.8 2.1.8
typed_data - 1.4.0 1.4.0
universal_io - 2.3.1 2.3.1
vector_math - 2.2.0 2.2.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.2.3` on libphonenumber_plugin does not support the stable version `0.3.0`.

Try running dart pub upgrade --major-versions libphonenumber_plugin to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_METHOD - lib/src/models/country.dart:54:23 - The method 'hashValues' isn't defined for the type 'Country'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.5, Flutter 3.38.5, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
60
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and customizable flutter package for inputting phone number in intl / international format uses Google's libphonenumber with ability to change country code manually using keyboard.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, country_picker, equatable, flutter, libphonenumber_plugin

More

Packages that depend on another_intl_phone_number_input