Skip to content

cliclitv/flutter_ns_danmaku

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 41.2%
  • C++ 33.0%
  • CMake 21.1%
  • HTML 2.0%
  • C 1.9%
  • Swift 0.5%
  • Other 0.3%