country_flags_world 2.0.3
country_flags_world: ^2.0.3 copied to clipboard
A Flutter package for displaying country flags using images from flagcdn.com with advanced features and optimizations
We analyzed this package 4 days ago, and awarded it 50 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: country_flags_world, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
OUT: Documenting country_flags_world... Discovering libraries... Linking elements... Precaching local docs for 1258520 elements... Initialized dartdoc with 1695 libraries Generating docs for library country_flags_enhanced.dart from package:country_flags_world/country_flags_enhanced.dart... Generating docs for library country_flags_world.dart from package:country_flags_world/country_flags_world.dart... Generating docs for library country_flags.dart from package:country_flags_world/country_flags.dart... Documented 3 public libraries in 51.5 seconds ERR: warning: ambiguous reexport of country_flag.CountryFlag, canonicalization candidates: (country_flags_world, country_flags_world, country_flags_world) -> country_flags_world (confidence 0.000) from country_flag.CountryFlag: (file:///tmp/pana_KTXZRR/lib/src/country_flag.dart:20:7) country_flags_world: 2.210 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) country_flags_world: 2.210 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) country_flags_world: 2.210 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) Use {@canonicalFor country_flag.CountryFlag} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be [80 more lines]
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 27 issues. Showing the first 2:
ERROR: Undefined class 'FlagSize'.
lib/src/country_flag_with_name.dart:20:9
╷
20 │ final FlagSize? flagSize;
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/country_flag_with_name.dart
ERROR: Undefined class 'FlagShape'.
lib/src/country_flag_with_name.dart:59:9
╷
59 │ final FlagShape shape;
│ ^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/country_flag_with_name.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
cached_network_image |
^3.3.1 |
3.4.1 | 3.4.1 | |
flutter_svg |
^2.0.10+1 |
2.2.4 | 2.2.4 | |
http |
^1.2.0 |
1.6.0 | 1.6.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
cached_network_image_platform_interface |
- | 4.1.1 | 4.1.1 | |
cached_network_image_web |
- | 1.3.1 | 1.3.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
code_assets |
- | 1.0.0 | 1.0.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.7 | 3.0.7 | |
ffi |
- | 2.2.0 | 2.2.0 | |
file |
- | 7.0.1 | 7.0.1 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
flutter_cache_manager |
- | 3.4.1 | 3.4.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
hooks |
- | 1.0.2 | 1.0.2 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.2 | |
native_toolchain_c |
- | 0.17.6 | 0.17.6 | |
objective_c |
- | 9.3.0 | 9.3.0 | |
octo_image |
- | 2.1.0 | 2.1.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_parsing |
- | 1.1.0 | 1.1.0 | |
path_provider |
- | 2.1.5 | 2.1.5 | |
path_provider_android |
- | 2.2.23 | 2.2.23 | |
path_provider_foundation |
- | 2.6.0 | 2.6.0 | |
path_provider_linux |
- | 2.2.1 | 2.2.1 | |
path_provider_platform_interface |
- | 2.1.2 | 2.1.2 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
petitparser |
- | 7.0.2 | 7.0.2 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
rxdart |
- | 0.28.0 | 0.28.0 | |
source_span |
- | 1.10.2 | 1.10.2 | |
sqflite |
- | 2.4.2 | 2.4.2 | |
sqflite_android |
- | 2.4.2+3 | 2.4.2+3 | |
sqflite_common |
- | 2.5.6 | 2.5.6 | |
sqflite_darwin |
- | 2.4.2 | 2.4.2 | |
sqflite_platform_interface |
- | 2.4.0 | 2.4.0 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.0 | 3.4.0 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
uuid |
- | 4.5.3 | 4.5.3 | |
vector_graphics |
- | 1.1.21 | 1.1.21 | |
vector_graphics_codec |
- | 1.1.13 | 1.1.13 | |
vector_graphics_compiler |
- | 1.2.0 | 1.2.0 | |
vector_math |
- | 2.2.0 | 2.3.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.6.1 | 6.6.1 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 27 errors:
UNDEFINED_CLASS-lib/src/country_flag_with_name.dart:20:9- Undefined class 'FlagSize'.UNDEFINED_CLASS-lib/src/country_flag_with_name.dart:59:9- Undefined class 'FlagShape'.UNDEFINED_IDENTIFIER-lib/src/country_flag_with_name.dart:94:18- Undefined name 'FlagShape'.
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.41.4, Dart 3.11.1.
Check the analysis log for details.