flutter_barrage_widget 0.0.1 flutter_barrage_widget: ^0.0.1 copied to clipboard
弹幕组件,支持点击暂停,显示头像,点击头像回调
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_barrage_widget
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_barrage_widget: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_barrage_widget/barrage/barrage.dart';
import 'package:flutter_barrage_widget/barrage/barrage_transition.dart';
import 'package:flutter_barrage_widget/barrage/widget_ext.dart';
import 'package:flutter_barrage_widget/eventbus/event_bus.dart';