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/Simp…
Tag: flutter
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 c…
Convert an existing Flutter Kotlin project to Flutter Java project
I created a Flutter project using default values, which are Kotlin for Android and Swift for iOS. Halfway through the project I needed to integrate a 3rd party Android SDK that requires Java. Can I convert a Flutter project to Java for Android after creation? I know I will need yo use Platform Channels to int…
How to implement interface in-line instead of using a class in Dart/Flutter?
Is there any way to implement an interface in dart/flutter without having to use a class? Currently, how I implement it is with the code below However, I would like to implement these interface methods without having to use a class, just as I would in java. Something that would look like the code below. Answe…