jpush / jpush-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
842 stars 352 forks source link

example能跑起来? #270

Open lh9403 opened 3 years ago

lh9403 commented 3 years ago

自己的项目pub安装完导入使用就报错,example也跑不起来

busyboy1991 commented 3 years ago

##这个问题何解啊,自己的工程和demo都报类似的错误

../lib/jpush_flutter.dart:29:12: Error: The parameter 'appKey' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String appKey,
^^^^^^
../lib/jpush_flutter.dart:30:10: Error: The parameter 'production' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. bool production,
^^^^^^^^^^
../lib/jpush_flutter.dart:48:18: Error: The parameter 'onReceiveNotification' can't have a value of 'null' because of its type 'Future Function(Map<String, dynamic>)', but the implicit default value is 'null'.

skill20 commented 3 years ago

2.0.9 修改了。