cast 0.2.0

Flutter Android iOS

Dart package to discover and connect with Chromecast devices

11
likes
80 / 110
pub points
67 %
popularity

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

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

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

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

  • 18 out of 194 API elements (9.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.

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:cast/cast.dart that imports:
  • package:cast/discovery_service.dart that imports:
  • package:mdns_plugin/mdns_plugin.dart that declares support for platforms: Android, iOS

Consider supporting these prerelease platforms:

Package does not support Flutter platform Windows

Because:

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

Because:

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

Because:

  • package:cast/cast.dart that imports:
  • package:cast/discovery_service.dart that imports:
  • package:mdns_plugin/mdns_plugin.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 9 issues. Showing the first 2:

INFO: Close instances of `dart.core.Sink`.

lib/socket.dart:27:11

   ╷
27 │       final _socket = await SecureSocket.connect(
   │ ┌───────────^
28 │ │       host,
29 │ │       port,
30 │ │       onBadCertificate: (X509Certificate certificate) => true, // chromecast use self-signed certificate
31 │ │       timeout: timeout,
32 │ │     );
   │ └─────^
   ╵

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

lib/cast_channel/cast_channel.pb.dart is not formatted according to dartfmt

To format your files run: dartfmt -w .

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
mdns_plugin^1.1.41.1.41.1.4
protobuf^1.0.11.0.11.0.1
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.0.01.0.0
collection-1.14.131.14.13
fixnum-0.10.110.10.11
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

11
likes
80
pub points
67%
popularity

Publisher

eivo.co

Dart package to discover and connect with Chromecast devices

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, mdns_plugin, protobuf

More

Packages that depend on cast