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
2
votes
1 answer

What does `PluginUtilities` do in Flutter's `dart:ui` library, and how do I use it?

PluginUtilities is documented as "Functionality for Flutter plugin authors.". It's quite hard to understand what it does. When/ how should I use it?
Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167
2
votes
1 answer

The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility

Αfter adding the google_mobile_ads plugin to my flutter project, I get the following error when I try to run my app. Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an exception. * What went…
2
votes
0 answers

Is there a destructor for plugins in case a hot restart occurs

I'm writing a small flutter plugin which might currently "crash" the app, if a hot restart occurs. I suspect this is due to my plugin attempting to open a (midi) port that was already opened in a previous run. So I'm looking for a function that is…
dmnk
  • 21
  • 1
  • 2
2
votes
0 answers

I am working on Flutter with IOT. Stuck with connection to a device with wifi and send the credentials to the device

My question was is their any way to connect the ESP32 with wifi connection and send our password to that selected device to connect that device to wifi of the same network our flutter app was connected to.The password also should send by the flutter…
2
votes
0 answers

How to limit the chrome size in flutter web?

Is there any way we can limit the size of Chrome flutter_web app? Like we can do in flutter_desktop if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) { setWindowTitle('App title'); setWindowMinSize(const Size(700, 500)); …
2
votes
0 answers

Unable to authenticate using Flutter local_auth plugin

I am using the Flutter local_auth plugin, biometrics works fine but Pincode/pattern doesn't provide authentication. I found if I remove my fingerprints from my mobile then Pincode and pattern authentication works but I need to input 2 times. The…
2
votes
1 answer

Getting build errors with Flutter Notification Plugin

When I am using Flutter Local Notification Plugin (4.0.1), I am getting build errors on both Android and iOS. This is occurring with few other plugins as well - Apple Sign in for iOS and Google Maps APis. However, the builds are successful when…
2
votes
0 answers

Flutter - Platform Exception: Cannot add a null child view to a ViewGroup

I am trying to show a Banner Ad from native java code to Flutter. I've tried seeing multiple plugins to write my code however when my app debugs it always shows me the error - Unhandled Exception: PlatformException(error, Cannot add a null child…
Arnav
  • 1,404
  • 2
  • 19
  • 38
2
votes
0 answers

"How to use Facebook App Event In Flutter"

I would like to add the Facebook app-events to my Flutter project. facebook_app_events: ^0.11.0,Android is working fine but IOS is not support my IOS platform :ios, '9.0' is using, so please suggest me. getting error flutter ios Objective C: …
A.K
  • 41
  • 4
2
votes
0 answers

Accessing DecorView of the Flutter Activity in android native using a self created plugin

I want to access the flutter activity's decorView in my native code. I created a plugin which give me access to the apis in the android native code. One of the api is public void setActivity(Activity activity){ Log.d("ActivityFromFlutter",…
2
votes
0 answers

FlutterPlugin onAttachedToEngine or registerWith is not getting called

I have some initialization in onAttachedToEngine or registerWith method. which is not getting called. As per this link, I am going complete load of the app every time. And because of this getting an error lateinit property context has not been…
Vinit ...
  • 1,409
  • 10
  • 37
  • 66
2
votes
0 answers

Flutter Plugin: What's causing the release build to fail?

A few months ago I've started a flutter plugin project. Its Android native code uses some precompiled third party libraries (.aar files). When building the example app in debug mode everything works fine. However, when switching to release, build…
SePröbläm
  • 5,142
  • 6
  • 31
  • 45
2
votes
1 answer

Android Library release configuration

I am trying to include FolioReader-Android library in Android Flutter plugin. It works well for for debug APKs, but when I try to build release APK Execution failed for task ':app:lintVitalRelease'. > Could not resolve all…
Rupa
  • 76
  • 6
2
votes
1 answer

async task is not Working in WorkManagers CallbackDispatcher

I am using WorkManager for Background Service. My code is as follows void callbackDispatcher() { Workmanager.executeTask((task, inputData) async { switch (task) { case "uploadLocalData": print("this method was called from…
2
votes
0 answers

podfile error when running flutter application

This is the error when I try to run ios app. [!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit": In Podfile: flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`) was resolved to 0.3.1, which…