-
Notifications
You must be signed in to change notification settings - Fork 535
'callbackHandle != null': callback must be a top-level or a static function #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same error for me. I think the documentation ins't clear |
Have a look at example codes |
AndroidManifest.xml => MyApplication.java => package xxx.xxxxxx; import io.flutter.app.FlutterApplication; public class MyApplication extends FlutterApplication implements PluginRegistry.PluginRegistrantCallback { but it not work,always is this question. E/flutter (22756): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter_downloader/src/downloader.dart': Failed assertion: line 388 pos 12: 'callbackHandle != null': callback must be a top-level or a static function why? |
Have a look at this document |
==> Solucation Future initLocalNotifications() async {
} |
==> Solucation Future initLocalNotifications() async {
} |
APP flash back!!!
Unhandled Exception: 'package:flutter_downloader/src/downloader.dart': Failed assertion: line 388 pos 12: 'callbackHandle != null': callback must be a top-level or a static function
The text was updated successfully, but these errors were encountered: