How to wrap a java lib for dart with MethodChannel
I was asked to wrap the Nordic API SDK, which is made in Java, to use it in a Flutter/Dart app. However, I’m struggling to do it, so I’m asking if someone could help me. I’ve never worked with Java code before, so I don’t understand what I’m trying to do.
the lib i trying to use : https://github.com/NordicID/nur_sdk/tree/master/java
flutter pub get(Expected to find project root in current working directory.)
when I want to do flutter pub get, there is an error like flutter pub get(Expected to find project root in current working directory.) How to solve it?
What are the actual parameters to be encoded?
lib/main.dart:860:9: Error: No named parameter with the name ‘builder’.
builder: (BuildContext ctx) => Container(
^^^^^^^
/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-6.1.0/lib/src/layer/marker_layer.dart:60:9: Context: Found this candidate, but the arguments don’t match.
const Marker({
^^^^^^
lib/main.dart:938:15: Error: No named parameter with the name ‘onPlacePicked’.
onPlacePicked: (location) {
^^^^^^^^^^^^^
/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dev/open_street_map_search_and_pick-0.1.1/lib/open_street_map_search_and_pick.dart:31:9: Context: Found this candidate, but the arguments don’t match.
const OpenStreetMapSearchAndPick({
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/main.dart:923:22: Error: The argument type ‘void Function(LatLng)’ can’t be assigned to the parameter type ‘void Function(TapPosition, LatLng)?’.