A Flutter DanMaku Player #
截图 / Screenshots #
特点 / Features #
Danmaku Danmaku Danmaku!
- 请使用 DanPlayerConfig.danmaku=false 屏蔽弹幕相关按钮
A DanPlayer Example
Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: danplayer: ^0.0.4
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.4
- Flutter: 1.12.13+hotfix.5
lib/danplayer.dart. (-1.49 points)
lib/danplayer.dart reported 3 hints:
line 73 col 3: The value of the field '_25Percent' isn't used.
line 74 col 3: The value of the field '_50Percent' isn't used.
line 75 col 3: The value of the field '_75Percent' isn't used.
lib/ui/danmaku_layer.dart. (-1.49 points)
lib/ui/danmaku_layer.dart reported 3 hints:
line 135 col 28: The value of the field '_showDanmaku' isn't used.
line 135 col 49: The value of the field '_enable' isn't used.
line 136 col 20: The value of the field '_playerValue' isn't used.
flutter format to format
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
|Dart SDK||>=2.3.0 <3.0.0|