dalipush 0.0.1 dalipush: ^0.0.1 copied to clipboard
一款集成了阿里推送的flutter插件,使用起来不是很简单,需要在你flutter的android项目中配置一个自己的application,并且在android app的gradle文件中做几个占位符,具体可以看reade.me
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dalipush
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dalipush: ^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:dalipush/dalipush.dart';