locale_plus 2.0.0 copy "locale_plus: ^2.0.0" to clipboard
locale_plus: ^2.0.0 copied to clipboard

LocalePlus allows easy access to native device locale data in Flutter apps. Includes language, country code, time zone, and number formatting preferences.

140/ 160
pub points
6.42k
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

16 out of 55 API elements (29.1 %) have documentation comments.

Some symbols that are missing documentation: locale_plus, locale_plus.LocalePlus.LocalePlus.new, locale_plus.os, locale_plus_method_channel, locale_plus_method_channel.MethodChannelLocalePlus.

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 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:locale_plus/locale_plus.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:locale_plus/locale_plus.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:locale_plus/locale_plus.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:locale_plus/locale_plus.dart that declares support for platforms: Android, iOS.

Swift PM-ready: This iOS or macOS plugin supports the Swift Package Manager. See https://docs.flutter.dev/to/spm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

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

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

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

Package Constraint Compatible Latest Notes
intl >=0.19.0 <0.21.0 0.20.2 0.20.2
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
universal_io ^2.0.4 2.3.1 2.3.1
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
material_color_utilities - 0.13.0 0.13.0
meta - 1.18.0 1.18.2
path - 1.9.1 1.9.1
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.3.0

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

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:

  • FOR_IN_OF_INVALID_ELEMENT_TYPE - lib/patch_all_locales.dart:74:14 - The type 'Iterable<MapEntry<dynamic, dynamic>>' used in the 'for' loop must implement 'Iterable' with a type argument that can be assigned to 'MapEntry<String, NumberSymbols>'.

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.12, Flutter 3.44.0, Dart 3.12.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
32
likes
140
points
6.42k
downloads

Documentation

API reference

Publisher

verified publishergokberk.dev

Weekly Downloads

LocalePlus allows easy access to native device locale data in Flutter apps. Includes language, country code, time zone, and number formatting preferences.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, intl, plugin_platform_interface, universal_io

More

Packages that depend on locale_plus

Packages that implement locale_plus