Skip to content
Advertisement

Tag: dart

Plain text encrypt from Dart code but decrypt from Java code

When I encrypt plain text using Dart,and encrypted text is decrypted from Java code, I get this error: Same IV, salt and passphase value using Java side for key generation, but the generated key is different and also cipher test is different. I am using same method for key generation. I don’t know what is missing in Dart code. Dart

how do I fix my flutter app not building with cloud firestore?

So I am new to flutter and firebase and I wanted to add firestore capabilities to my app, but when I tried to use firestore I got an error The plugin cloud_firestore requires a higher Android SDK version. │ │ Fix this issue by adding the following to the file │ │ C:UsersJaffStudioProjectspriv_chatandroidappbuild.gradle: After fixing the SDK version, then I

How to fix app:lint error when building flutter app?

For some reason, all of a sudden my app cannot build anymore. First I had flutter devtools problem, then I upgraded to Flutter 2.8.1 and now my app cannot build. I tried upgrading Gradle to 7.3.3 and JDK 17 and still, my app cannot build, I searched the whole GitHub and StackOverflow and cannot find a solution. This was my

Flutter is unable to display video

Even though I had tried adding the dependencies and change the video link to a YouTube link instead, it still the same and does not display the video. May I know how to solve this problem? There are a few errors, I listed it as below: The method ‘VideoPlayer’ isn’t defined for the type ‘_VideoAppState’ Undefined name ‘VideoPlayerController’. Undefined class

Flutter BLE Byte to Array conversion

I’m using the Flutter Blue library to build an app to connect to an IoT device. I was able to get the connection and the discovery of services to work. I want to send a command which is originally written in Java (NRF library). What is the dart equivalent for the above code? I have tried various combinations, but dart

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:

Decrypt a Java AES encoded String in Dart

I need to decrypt an AES (PKCS#7) encoded string in my Flutter mobile application. The string is got from a QR Code, which has been generated from a Java application and contains the AES encoded String. The Java encoding : Output : AIRTEuNmSuQtYuysv93w3w83kJJ6sg7kaU7XzA8xrAjOp-lKYPp1brtDAPbhSJmT The Dart decoding : Output : Y��=X�Rȑ�”Qme@mycompany.com;12 You can see that only a part of the string

Advertisement