address_selector_for_chinese 0.0.2 copy "address_selector_for_chinese: ^0.0.2" to clipboard
address_selector_for_chinese: ^0.0.2 copied to clipboard

中国的省市区选择器

3
likes
105/ 140
pub points
26%
popularity

We analyzed this package 44 hours ago, and awarded it 105 pub points (of a possible 140):

failed
Follow Dart file conventions
15 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

The package description contains too many non-ASCII characters.

The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:5:1

  ╷
5 │ <a href="http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2021/index.html">2021年统计用区划代码和城乡划分代码(截止时间:2021-10-31,发布时间:2021-12-30)</a></p>
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

partial
Provide documentation
10 / 20trigger folding of the section

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

8 out of 53 API elements (15.1 %) 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.

Some symbols that are missing documentation: address_selector_for_chinese, address_selector_for_chinese.AddressSelector, address_selector_for_chinese.AddressSelector.AddressSelector, address_selector_for_chinese.AddressSelector.areaName, address_selector_for_chinese.AddressSelector.cityName.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 12 issues. Showing the first 2:

INFO: 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead. Deprecated to prepare for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre.

lib/address_selector_for_chinese.dart:16:29

   ╷
16 │ import 'dart:ui' as ui show window;
   │                             ^^^^^^
   ╵

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

INFO: Using a colon as the separator before a default value is deprecated and will not be supported in language version 3.0 and later.

lib/address_selector_for_chinese.dart:39:26

   ╷
39 │     this.itemTextFontSize: 14.0,
   │                          ^
   ╵

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

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

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

Package Constraint Compatible Latest
azlistview ^2.0.0 2.0.0 2.0.0
flutter flutter 0.0.0 0.0.0
lpinyin ^2.0.2 2.0.3 2.0.3
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
scrollable_positioned_list - 0.2.3 0.3.8
sky_engine - 0.0.99 0.0.99
vector_math - 2.1.4 2.1.4

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

Analyzed with Pana 0.22.3, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.