thumbnaillib 0.1.1

Flutter Android iOS

获取视频缩略图的控件.

0
likes
75 / 110
pub points
24 %
popularity

We analyzed this package on Sep 22, 2020, and awarded it 75 pub points (of a possible 110):

Follow Dart file conventions
5 / 20

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

0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

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

  • 4 out of 18 API elements (22.2 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Consider supporting multiple platforms:

Package does not support Flutter platform Web

Because:

  • package:thumbnaillib/thumbnaillib.dart that declares support for platforms: Android, iOS

Consider supporting these prerelease platforms:

Package does not support Flutter platform Windows

Because:

  • package:thumbnaillib/thumbnaillib.dart that declares support for platforms: Android, iOS
Package does not support Flutter platform Linux

Because:

  • package:thumbnaillib/thumbnaillib.dart that declares support for platforms: Android, iOS
Package does not support Flutter platform macOS

Because:

  • package:thumbnaillib/thumbnaillib.dart that declares support for platforms: Android, iOS
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

INFO: The value of the field '_channel' isn't used.

lib/src/thumbnail_channel.dart:7:30

  ╷
7 │   static const MethodChannel _channel = const MethodChannel('thumbnaillib');
  │                              ^^^^^^^^
  ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/thumbnail_channel.dart

INFO: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ThumbnailImage.showWidth, ThumbnailImage.showHeight

lib/src/thumbnail_image.dart:11:7

   ╷
11 │ class ThumbnailImage extends StatefulWidget {
   │       ^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/thumbnail_image.dart

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
flutterflutter0.0.00.0.0
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.0.01.0.0
collection-1.14.131.14.13
meta-1.1.81.2.3
sky_engine-0.0.990.0.99
typed_data-1.2.01.2.0
vector_math-2.0.82.0.8

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

10/10 points: Package supports latest stable Dart and Flutter SDKs