Category : dart

After downgrading my flutter version, I can’t launch a single app. First I had to solve some package conflict, and after that I couldn’t build any app. This is the message when I try to run flutter run : java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43) at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35) at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:107) at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:95) at org.codehaus.groovy.reflection.ReflectionCache.<clinit>(ReflectionCache.java:39) ..

Read more

I can create function to get path from PID, but now i must get process PID. String _getProcessPath(int processID) { var path = ”; var hProcessHandle = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processID); var lpFilename = ‘000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000’ .toNativeUtf16(); var nSize = MAX_PATH; GetModuleFileNameEx(hProcessHandle, NULL, lpFilename, nSize); path = lpFilename.toDartString(); CloseHandle(hProcessHandle); free(lpFilename); return path; } I ..

Read more

Currently, this is how I read from C++ using Flutter: final Uint8List result = await platform.invokeMethod(Common.MESSAGE_METHOD, {"message": buffer}); It is handled by Kotlin like this: MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result -> if (call.method == MESSAGE_METHOD) { val message: ByteArray? = call.argument<ByteArray>("message") //… result.success(response) Since this happens in the main thread, if I take too much ..

Read more