flutter_visualizers 0.0.2
flutter_visualizers: ^0.0.2

Flutter Android iOS

A Flutter plugin to Visualize the audio being played (only android).

33
likes
80 / 110
pub points
77 %
popularity

We analyzed this package on Nov 26, 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

  • 13 out of 108 API elements (12.0 %) 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)

Found 6 issues. Showing the first 2:

Consider supporting multiple platforms:

Package does not support Flutter platform Web

Because:

  • package:flutter_visualizers/flutter_visualizers.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 10 issues. Showing the first 2:

INFO: This function has a return type of 'Future

lib/callbacks.dart:12:34

   ╷
12 │       channel.setMethodCallHandler((MethodCall call) {
   │ ┌──────────────────────────────────^
13 │ │ 
14 │ │       switch (call.method) {
15 │ │         case 'onFftVisualization':
16 │ │           List<int> samples = call.arguments['fft'];
17 │ │           for (Function callback in _fftCallbacks) {
18 │ │             callback(samples);
19 │ │           }
20 │ │           break;
21 │ │         case 'onWaveformVisualization':
22 │ │           List<int> samples = call.arguments['waveform'];
23 │ │           for (Function callback in _waveformCallbacks) {
24 │ │             callback(samples);
25 │ │           }
26 │ │           break;
27 │ │         default:
28 │ │           throw new UnimplementedError('${call.method} is not implemented for audio visualization channel.');
29 │ │       }
30 │ │     });
   │ └─────^
   ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/callbacks.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: Visualizer.id

lib/visualizer.dart:5:7

  ╷
5 │ class Visualizer extends StatefulWidget {
  │       ^^^^^^^^^^
  ╵

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

Support up-to-date dependencies
20 / 20

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

No dependencies.

Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.1.0-nullsafety.51.1.0-nullsafety.5
collection-1.15.0-nullsafety.51.15.0-nullsafety.5
meta-1.3.0-nullsafety.61.3.0-nullsafety.6
typed_data-1.3.0-nullsafety.51.3.0-nullsafety.5
vector_math-2.1.0-nullsafety.52.1.0-nullsafety.5

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

33
likes
80
pub points
77%
popularity

A Flutter plugin to Visualize the audio being played (only android).

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sahdeepsingh98@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_visualizers