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
8
votes
4 answers

flutter_facebook_login CocoaPods dependency error

I am try add facebook login to Flutter app. I am use flutter_facebook_login. But when I try build for iOS give error: Resolving dependencies of `Podfile` [!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit": In…
FlutterFirebase
  • 2,163
  • 6
  • 28
  • 60
8
votes
1 answer

Create Flutter Plugin with pod dependencies

I created a flutter plugin with "FacebookShare" dependency. My pod spec like below, Pod::Spec.new do |s| s.name = '{plugin name}' s.version = '0.0.2' s.summary = 'A new Flutter plugin for share image and text in…
Jayaraj M
  • 192
  • 11
7
votes
1 answer

Use a function declaration to bind a function to a name

I am new to flutter. I was using the camera plugin to add the camera to my app. And I got this warning Use a function declaration to bind a function to a name. How can I solve this one? Code - Widget _cameraTogglesRowWidget() { final…
7
votes
3 answers

Execution failed for task ':permission_handler:compileDebugJavaWithJavac'

When I added permission_handler plugin in flutter. This Error Occured: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':permission_handler:compileDebugJavaWithJavac'. > Compilation failed; see the compiler…
Zilaid
  • 464
  • 6
  • 22
7
votes
2 answers

How to use Flutter Method Channel in background (app minimised/closed)

I am working on a native Android widget in a Flutter App. In which there is refresh button, on click of that I have to call a method in the Flutter code. I am using Flutter Method Channel for the communication and it is working fine when app is in…
Shahbaz Hashmi
  • 2,631
  • 2
  • 26
  • 49
7
votes
1 answer

How to use a flutter plugin locally?

Let's say we have created a plugin with flutter. Named flutter_local_plugin. How can we put it inside a flutter project flutter_some_application and access it? There is a question here (how to use local flutter package in another flutter…
Denis Rudenko
  • 667
  • 7
  • 14
6
votes
4 answers

How to Import AAR file in the flutter plugin?

I am working in a flutter plugin and want to import an .aar project in android part of the plugin. I have tried opening the android project and importing the .aar project by importing the module, including it in setting.gradle and adding it in…
Bishal
  • 81
  • 1
  • 5
6
votes
0 answers

FlutterFragment with FlutterPlugin - how to get a reference

I'm currently using a FlutterFragment inside an AppCompatActivity. Also, I'm using a pre-warmed up flutter engine and a FlutterPlugin to have a methodChannel from and to native/flutter when needed. I am currently in a situation where I want to start…
Dennis Anderson
  • 1,348
  • 2
  • 14
  • 33
6
votes
2 answers

How to add a second example app to a Flutter plugin project?

When creating a plugin project in Flutter, an example app, that is using the plugin, is added in a subfolder of the plugin project. What needs to be done to add a second "example" app to the plugin folder? So far I have: Copied and renamed the…
SePröbläm
  • 5,142
  • 6
  • 31
  • 45
6
votes
1 answer

Flutter - How to run unit tests over a plugin native code for Android

We are building a plugin for flutter that iterable.com here la-haus/iterable-flutter, and we want to test the android implementation of our plugin, we are already able to run tests for the flutter side but not each native implementation…
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162
6
votes
5 answers

MissingPluginException(No implementation found in flutter using geolocator

i am using geolocator in flutter project to get current location but this error come on it. i added all dependencies in both ios and android files still get this error i dont know why flutter channel stable, 2.12, here is my code: Position position…
Adnan haider
  • 553
  • 8
  • 21
6
votes
2 answers

Run android project from a Flutter project with unsound null safety

After sound null safety has arrived, projects that still have dependencies that have not upgraded to null safety yet, can still be run using --no-sound-null-safety flag through the Flutter command. But now I am trying to run the app through the…
6
votes
3 answers

Opening Location Permission from the inside of App flutter

the page i want to access from inside the app :
Aymen TLILI
  • 134
  • 1
  • 1
  • 7
6
votes
3 answers

How to add .a libraries on flutter plugin via podspec

I am trying to include .a files on the iOS side of the plugin. Below is my file structure. Now when I try to add .a files via vendored_libraries on podspec, pod install is successfully completed. And when I compile the code, I get Library Not Found…
Aawaz Gyawali
  • 3,244
  • 5
  • 28
  • 48
6
votes
1 answer

How to create a Flutter plugin that works in another Flutter project?

I have a Flutter plugin successfully running on my newly created Flutter-plugin project. And both worlds, iOS and Android, are able to run the example/lib/main.dart example-code of this Flutter-plugin successfully. However, once I try to use the…
iKK
  • 6,394
  • 10
  • 58
  • 131
1 2
3
32 33