Skip to content
Advertisement

Tag: flutter

import android.support.v4.app.ActivityCompat;

This is the error i am seeing when i add “simple_permissions” package. How can i fix this? I recently upgraded flutter and it used to work very well before the upgrade. /root/flutter/.pub-cache/hosted/pub.dartlang.org/simple_permissions-0.1.9/android/src/main/java/com/ethras/simplepermissions/SimplePermissionsPlugin.java:9: error: cannot find symbol import android.support.v4.app.ActivityCompat; Answer I suggest you to check the package before using it. It seems that simple_permissions is outdated and this package hasn’t been

How to ‘put’ arguments from Swift native code to Flutter

I am trying to pass arguments from a callback method in Swift to Flutter. This is an example of what I want to achieve, in my native Java code: Edit: I am facing an issue, the argument args is undefined and I’m unsure what is the Swift equivalent of arguments.put() from the Java code above. This is my current implementation:

Advertisement