ns_danmaku 0.0.1 icon indicating copy to clipboard operation
ns_danmaku: ^0.0.1 copied to clipboard

NSDanmaku for Flutter.

A Flutter danmaku package.

Using #

Example:


import 'package:ns_danmaku/danmaku_controller.dart';
import 'package:ns_danmaku/danmaku_view.dart';
import 'package:ns_danmaku/models/danmaku_option.dart';

class _DanmakuPageState extends State<DanmakuPage> {
  late DanmakuController _controller;
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        //Your container, such as a player
        Container(),
        // Danmaku
        DanmakuView(
          createdController: (e) {
            _controller = e;
          },
          option: DanmakuOption(),
        ),
      ],
    );
}

Reference #

https://zhuanlan.zhihu.com/p/159027974

https://www.zhihu.com/question/370464345

https://github.com/LaoMengFlutter/flutter-do

1
likes
120
pub points
36%
popularity

Publisher

unverified uploader

NSDanmaku for Flutter.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ns_danmaku