ecp_theme 2.0.3
ecp_theme: ^2.0.3 copied to clipboard
翼协云主题管理包,提供 Light/Dark 主题配置、Color/Theme 扩展、通用尺寸规范及文本组件封装,内部项目通用的 Flutter 主题工具库。
We analyzed this package 10 days ago, and awarded it 55 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
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.
Homepage URL doesn't exist.
At the time of the analysis https://gitlab.ctbiyi.com/ecp/app/ecp_theme was unreachable. Make sure that the website is reachable via HEAD requests.
0/5 points: Provide a valid README.md
`README.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
45 out of 117 API elements (38.5 %) have documentation comments.
Some symbols that are missing documentation: base_theme_data, color_ext, color_ext.ColorExt.reverseColor, color_ext.ColorExt.toHexString, default_page.
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 20 issues. Showing the first 2:
ERROR: The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.
lib/resources/themes.dart:30:20
╷
30 │ tabBarTheme: BaseThemeData.tabBar.copyWith(
│ ┌────────────────────^
31 │ │ labelColor: LightColors.primary,
32 │ │ unselectedLabelColor: LightColors.supBody,
33 │ │ labelStyle: TextStyle(fontSize: 14.sp),
34 │ │ unselectedLabelStyle: TextStyle(fontSize: 14.sp),
35 │ │ indicatorSize: TabBarIndicatorSize.label,
36 │ │ splashFactory: InkRipple.splashFactory,
37 │ │ indicatorColor: LightColors.primary,
38 │ │ ),
│ └───────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/resources/themes.dart
ERROR: The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.
lib/resources/themes.dart:59:18
╷
59 │ cardTheme: BaseThemeData.card.copyWith(color: LightColors.card),
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/resources/themes.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
flutter_screenutil |
^5.1.0 |
5.9.3 | 5.9.3 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
vector_math |
- | 2.4.2 | 2.4.2 |
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 4 errors:
ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/resources/themes.dart:30:20- The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/resources/themes.dart:59:18- The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/resources/themes.dart:117:22- The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.
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.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.