I'm trying to use local notification package, trying to send a notification when the internet connection is lost, internet connection checking is fine, but I'm facing an issue in notification part. the error message is "Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference" my main.dart is https://sourceb.in/4NUViEivKn (the problem is in 60th line on the setStateI think) my notification_api.dart https://sourceb.in/oDwdd3CTSg
You didn't initialize the plugin to use it, you can follow their docs it's well explained here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.