Skip to main content

All Questions

0 votes
1 answer
46 views

FlutterError Optional("type \'_Map<Object?, Object?>\' is not a subtype of type \'Future<dynamic>\'") when using invokeMethod:argument:result from iOS

I'm creating a Flutter plugin with some native iOS ViewController from a native iOS app. In the native ViewController I setup a MethodChannel and a MethodCallHandler, same in the Flutter screen. I'm ...
Vincenzo's user avatar
  • 6,530
1 vote
0 answers
2k views

Scan for bluetooth devices Flutter

I am new to Bluetooth and this is the first time I am trying it, so I am trying to develop an application that scans for nearby Bluetooth devices and connects, I am using flutter_blue package and I ...
Sana'a Al-ahdal's user avatar
-1 votes
1 answer
667 views

Flutter NPE Unable to destroy activity

when i exit from flutter app two times it should me this crash. previously i used plugin and removed it im wondering why it showed this function setMethodCallHandler and no used for it before. can ...
EL TEGANI MOHAMED's user avatar
0 votes
1 answer
683 views

Flutter/Swift await sink from synchronous context

I'm trying to make use of an async Swift Library for a Flutter application, however, I cannot await the async Swift. The code structure is the following: ... nfcChannel.setMethodCallHandler({ ...
Alex's user avatar
  • 591
2 votes
2 answers
2k views

Flutter platform channels pass "multi-data" to windows function

I am testing the Platform-Channels with the windows visual studio 2022. I can pass the single value from the flutter UI while I get the battery value, but I want to send multi-data from flutter to the ...
DavidLee's user avatar
2 votes
1 answer
2k views

Flutter plugin - mobile fails to compile because of 'dart:html' but plugin only supports web

Since there is no package to implement AdSense in Flutter, I decided to create a local plugin. It's extremely simple, the widget is an IFrameElement. I made sure when creating the plugin to specify ...
Globe's user avatar
  • 564
2 votes
0 answers
202 views

Flutter Windows Desktop: Integrate with the File Activation API

I am looking for some guidance on implementing the Windows File Activation API with my Flutter App, that is, a user able to open a file associated with my App and have that file path passed to my app ...
Charlie's user avatar
  • 21
1 vote
0 answers
1k views

java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity io.flutter.embedding.android.FlutterActivity.getActivity()'

Everyone, please help me My Flutter Plugin Java can't start Intent service from android native please tell me to fix I created a Flutter plugin to connect to my watch. I created a Method Chanel, run ...
Thananat Rueangchot's user avatar
4 votes
2 answers
3k views

How to add dependencies to Flutter plugin

I'm trying to implement new Flutter plugin to wrap my native SDKs and use my native SDK directly and return the result. I already finished the Android part by adding my library using maven and use it ...
MARK 's user avatar
  • 444
2 votes
0 answers
632 views

Flutter plugin instance with parameters

I am trying to make a plugin for authentication. It will act like a "wrapper" (but with additional functionality for each plugin) for different already existing packages for different ...
TheSpixxyQ's user avatar
  • 1,045
1 vote
0 answers
291 views

Intellisense not working for flutter plugin project in android studio

I am using android studio Artic-Fox 2020.3.1. I created a flutter plugin project using the android studio, intellisense is not working for the android module but it's working fine for lib module. ...
Minion's user avatar
  • 1,074
1 vote
1 answer
283 views

Flutter - Trying to Use Tensorflowlite - FloatEfficientNet

I am attempting to use a model that is successfully inferencing in both native swift and android/java to do the same in flutter, specifically the android side of it. In this case the values I am ...
firestreak's user avatar
4 votes
1 answer
2k views

MissingPluginException in flutter in release mode android

Many plugins aren't working in flutter when you try to build a apk in release mode , but these plugins are working perfectly in debug mode Some recomend changing the gradle version to 3.5 , but ...
Chidhambararajan NRM's user avatar
6 votes
1 answer
6k views

Flutter plugin that uses .aar modules builds and runs fine in the example app but fails to build in a different app

I've written a Flutter plugin to use an SDK that requires the inclusion of some .aar modules. It builds and runs perfectly in the example app for the plugin, but when I import the plugin in a ...
GroovinChip's user avatar
0 votes
1 answer
367 views

Is there a way to capture when the platform's share sheet is aborted using Flutter's share plugin?

I am using Flutter's share plugin to share contents from my app. Share.share("A sample text that is shared") Upon inspection, I found that the plugin invokes a method 'share'on the ...
slipperyleaf's user avatar

15 30 50 per page