flutter_highlight_text 0.0.4 flutter_highlight_text: ^0.0.4 copied to clipboard
Flutter文本指定文字或者指定分割符高亮
We analyzed this package 3 days ago, and awarded it 110 pub points (of a possible 140):
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.
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
2 out of 15 API elements (13.3 %) 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: flutter_highlight_text
, flutter_highlight_text.HighLightText
, flutter_highlight_text.HighLightText.HighLightText
, flutter_highlight_text.HighLightText.highLightTextStyle
, flutter_highlight_text.HighLightText.highLightType
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ Windows
- ✓ Linux
- ✓ macOS
- ✓ Web
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 6 issues. Showing the first 2:
INFO: Statements in a while should be enclosed in a block.
lib/src/util/kmp_util.dart:28:50
╷
28 │ while (k > -1 && string[k + 1] != this[i]) k = next[k];
│ ^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/util/kmp_util.dart
INFO: Statements in an if should be enclosed in a block.
lib/src/widget/string_parser.dart:42:9
╷
42 │ ┌ spans.add(
43 │ └ TextSpan(text: content.substring(currentPosition, span.start), style: style));
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/widget/string_parser.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
flutter |
flutter |
0.0.0 | 0.0.0 |
string_scanner |
^1.1.0 |
1.2.0 | 1.2.0 |
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 |
path |
- | 1.9.0 | 1.9.0 |
sky_engine |
- | 0.0.99 | 0.0.99 |
source_span |
- | 1.10.0 | 1.10.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
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.6
, Dart 3.3.4
.
Check the analysis log for details.