Questions tagged [flutter-plugin]

Use this tag for questions related to the creation or modification of plugins in flutter. For the use of, or issues with, plugins as dependencies, use [flutter-dependencies] instead.

Flutter plugins make the functionality of native code available to Flutter. This can be done through the use of platform channels.

See Developing plugin packages for more information.

492 questions
5
votes
1 answer

Flutter share native objects between plugins

I am working on a couple plugins for streaming and recording video. In Android land it is generally not possible to have two things access the camera simultaneously. The obvious solution is to merge the two plugins into one that marshals/shares the…
TheGwa
  • 1,919
  • 27
  • 44
5
votes
2 answers

Where and How to Include File Resources Within IOS component of Flutter Plugin?

Let's say you're writing the IOS component of a Flutter plugin in Swift. You have your MyFlutterPlugin.swift file open in XCode. So that we know what we're talking about the same thing, it's the file that looks like this: public class…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
5
votes
2 answers

Flutter Federated Plugin

I am trying to develop a federated plugin which will wrap a native SDK (for android and ios) as explained here, and also went over the examples shown here and the url_launcher plugin example but nevertheless, I couldn't figure out a few things.. In…
Moti Bartov
  • 3,454
  • 33
  • 42
5
votes
1 answer

Flutter: MissingPluginException when calling plugin from isolate spawned by native code

I'm building a Flutter app that will have the capability to execute some actions when the device connects to another bluetooth device. This app should work on Android and iOS but for the sake of simplicity I'll focus on Android in this post. Also,…
Valentin
  • 5,379
  • 7
  • 36
  • 50
5
votes
0 answers

"handle" function is not being called in Flutter iOS plugin

We have created a Flutter plugin where iOS code is written in Swift- import UIKit import CooeeSDK public class SwiftCooeePlugin: NSObject, FlutterPlugin { var sdkInstance = RegisterUser.shared static public func register(with…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
5
votes
0 answers

Android fragment in Flutter plugin using platform views

I am working on developing a flutter plugin for secure video streaming. I use a native android plugin that uses a fragment for playing the video. Going through platform views in flutter. It seems I could only return Android views to a widget using…
Siva Perumal
  • 457
  • 2
  • 8
  • 23
5
votes
0 answers

FlutterPlugin vs FlutterActivity

for my Flutter App I want to write myself a small plugin which is using the camera natively in Android. I was going through the documentation, and I got a basic understanding of the "glue" between Flutter and Native with MethodChannels. There is one…
Igor Bozin
  • 116
  • 6
5
votes
1 answer

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 different app and try to build it, the build immediately…
GroovinChip
  • 339
  • 4
  • 17
5
votes
1 answer

Using flutter how to merge audio file with sync of any video like camera action like that there is any specific package is available in flutter

I have been searching for the packages or any method for the particular problem, i googled but i didn't find any solution , So my issue is , i want functionality like ticktock App , user can select any music audio and they can play according to that…
5
votes
0 answers

Trying to create a platform view of unregistered type

I'm developing a Flutter Plugin that uses AndroidView to display native Android views But I get the following Exception: Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered…
cwallenwein
  • 538
  • 7
  • 20
5
votes
2 answers

Flutter Desktop - System tray implementation

I am new to flutter i am struggling to create a system tray implementation. What i need is: Create a tray icon for my application. Be able to hide and show the application window through the tray icon right click menu. Be able to add options to…
5
votes
2 answers

How do you use receiver (BroadcastReceiver) in a flutter plugin?

Problem I am building an application that requires some of the functionality of the Radar.io SDK, and so I decided to create plugin so after this project is over I can share the plugin with the rest of the Flutter Community. The problem is, I am not…
Anthony Sette
  • 777
  • 1
  • 10
  • 26
5
votes
1 answer

Editing 3rd party Plugins in Flutter

I want to edit a plugin to fit into my App. I just did that by CTRL+clicking on the plugin import code in flutter and editing the desired .dart file. Now I wonder, if this could be overwritten in the future. The path (where I edited the dart file)…
Daniel
  • 101
  • 1
  • 3
  • 15
5
votes
0 answers

How to add native framework/library to flutter plugin(not by using cocoapods)?

I am new to Flutter. I am having native frameworks(both iOS & Android) which runs successfully with native projects. I need to create and incorporate these frameworks to the plugin, so that this plugin can be used in any Flutter projects to consume…
GJDK
  • 723
  • 2
  • 7
  • 19
5
votes
0 answers

EditText not showing keyboard when tapped in Flutter AndroidView

import android.content.Context; import android.view.View; import android.widget.EditText; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; import static io.flutter.plugin.common.MethodChannel.Result; import…