stock_sentiment 0.0.5 copy "stock_sentiment: ^0.0.5" to clipboard
stock_sentiment: ^0.0.5 copied to clipboard

A package to get stock sentiment from headlines. Given a String of tickers seperated by space, it will give you all the sentiment.

60/ 160
pub points
10
downloads

We analyzed this package 11 days ago, and awarded it 60 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

7 out of 20 API elements (35.0 %) have documentation comments.

Some symbols that are missing documentation: stock_sentiment, stock_sentiment.Headline.Headline.new, stock_sentiment.Headline.date, stock_sentiment.Headline.extract, stock_sentiment.Headline.link.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

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

Failed report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 6 issues. Showing the first 2:

ERROR: The class 'Sentiment' doesn't have an unnamed constructor.

lib/stock_sentiment.dart:159:23

    ╷
159 │     final sentiment = Sentiment();
    │                       ^^^^^^^^^
    ╵

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

ERROR: The static method 'analysis' can't be accessed through an instance.

lib/stock_sentiment.dart:182:30

    ╷
182 │         var sent = sentiment.analysis(headline.extract);
    │                              ^^^^^^^^
    ╵

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

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

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

Package Constraint Compatible Latest Notes
html ^0.15.0 0.15.7 0.15.7
http ^0.13.3 0.13.6 1.6.0
intl ^0.17.0 0.17.0 0.20.3
sentiment_dart ^0.0.4 0.0.5 0.0.5
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
clock - 1.1.3 1.1.3
collection - 1.19.1 1.19.1
csslib - 1.0.2 1.0.2
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
path - 1.9.1 1.9.1
remove_emoji - 0.0.10 0.0.10
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.4.2 2.4.2

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

The constraint `^0.13.3` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http to update the constraint.

The constraint `^0.17.0` on intl does not support the stable version `0.18.0`.

Try running dart pub upgrade --major-versions intl to update the constraint.

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 6 errors:

  • NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT - lib/stock_sentiment.dart:159:23 - The class 'Sentiment' doesn't have an unnamed constructor.
  • INSTANCE_ACCESS_TO_STATIC_MEMBER - lib/stock_sentiment.dart:182:30 - The static method 'analysis' can't be accessed through an instance.
  • UNDEFINED_OPERATOR - lib/stock_sentiment.dart:183:25 - The operator '[]' isn't defined for the type 'SentimentResult'.

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.

Weekly downloads

Display as:
By versions:
0
likes
60
points
10
downloads

Documentation

API reference

Publisher

verified publishercopypasteearth.com

Weekly Downloads

A package to get stock sentiment from headlines. Given a String of tickers seperated by space, it will give you all the sentiment.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, html, http, intl, sentiment_dart

More

Packages that depend on stock_sentiment