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

How to add Internationalization to a Flutter Plugin

I made a Flutter plugin and I need to add Internationalization. I have follow this tutorial like I usually do for a my Flutter app : Internationalization in Flutter 1.22+ But with a Flutter plugin there is no MaterialApp so I can't add this…
zackattack
  • 199
  • 3
  • 12
3
votes
0 answers

Is it possible to record a video while using imageStream with camera plugin?

I am trying to use the camera plugin for two purposes in my app: Allow the user to record a video Process the video alongside recording with some AI models I tried to use the camera plugin with two controllers. CameraController…
Ankit Mundada
  • 407
  • 4
  • 15
3
votes
0 answers

Android FragmentManager has not been attached to a host

I need to create a Flutter plugin and link native Android code from ADA bot. I have no experience with android but by following the documentation, it should be simple: val adaView = AdaEmbedView(getContext()) val adaSettings =…
3
votes
1 answer

VSCode cannot run flutter app after upgrading Flutter to release 1.20.0 and VSCode Flutter plugin to 1.13.1

Using MacOS and VSCode. Just upgraded Flutter to release 1.20.0 and now I cannot start my project in debug mode (F5) from within VSCode on my iPhone simulator. If I execute on the terminal flutter run everything is working as expected. Output of…
Alex Bibiano
  • 633
  • 1
  • 6
  • 19
3
votes
0 answers

Flutter - cannot access listener in Native code

I am trying to make a plugin for an SDK in Flutter, I have written my entire code in Java however when I compile my file and my java/io file gets generated it shows me the error that it cannot access a following listener that I have added to my Java…
Arnav
  • 1,404
  • 2
  • 19
  • 38
3
votes
1 answer

Can I make direct calls from my app (Flutter Android & IOS)?

Actually, I'm trying to create a dialer app. From which you can call directly by typing mobile number. I know of the "url_launcher Flutter package" but it is not suitable for my application. I want like the default dialer of mobile, so that you can…
3
votes
3 answers

Use of rate_my_app package in flutter?

Could anyone tell me, how you have used rate_my_app https://pub.dev/packages/rate_my_app package in flutter app to increase user reviews? A sample code will be very useful?
sharath
  • 91
  • 3
  • 6
3
votes
1 answer

Is it possible to add opacity to the GoogleMap widget?

I'm attempting to add opacity to the GoogleMap widget but not seeing any changes. I've previously tried wrapping the entire widget with a Container then adding Opacity and GoogleMap as direct children but this did not work either. The code below…
William
  • 87
  • 4
3
votes
1 answer

Static Google map (disable all gestures)

I want to create a Google Map widget which will not handle any clicks, gestures - just a static map. I understand I need somehow to set gestureRecognizers but can't figure out which class will lock all the gestures. What should I use instead of…
vovahost
  • 34,185
  • 17
  • 113
  • 116
3
votes
1 answer

Naming a Flutter Plugin EventChannel

I created a new plugin with flutter create --template plugin alfalfa which generates lib/alfalfa.dart containing import 'dart:async'; import 'package:flutter/services.dart'; class Alfalfa { static const MethodChannel _channel = const…
Ted Henry
  • 1,442
  • 1
  • 14
  • 34
3
votes
2 answers

Flutter Permissions status NotAgain even on first launch

I'm using permission plugin in order to check permissions status and request them if they are in deny state. But every time from first time the permission status for phone and storage are notAgain. Because of which I'm unable to request user to…
Harsha pulikollu
  • 2,386
  • 15
  • 28
3
votes
1 answer

How to launch a ViewController from Flutter Platform Specific code written in Swift?

I am creating a plugin for Paytm and written platform specific code for both Android and iOS. Paytm is payment gateway service in India and super easy to configure and integrate it in the app. It required some configurations and the last step is to…
3
votes
1 answer

How to show native iOS views in a Flutter application?

I am currently working on a project in which I need to implement a graphical framework that has been written for Android and iOS; however, I am writing the application using Flutter/Dart, and so far I can not find any way for showing native iOS…
gannonbarnett
  • 1,638
  • 1
  • 16
  • 28
3
votes
1 answer

Flutter Camera bad quality

i got the Flutter Camera working with a preview and all that. But the quality of the recorded video is way to bad. I get 1MB for 10 seconds. The resolution is fine (1080 x 1440), but i think the bitrate is way to low somehow. I looked into the…
Markus
  • 449
  • 1
  • 7
  • 22
2
votes
1 answer

Flutter native_screenshot on Android 12 throws path as null and failed EPERM (Operation not permitted) even with AndroidManifest.xml R/W/M permissions

Building: An app that runs in the background and takes screenshots periodically Screnario: For now i'm just trying to take the screenshot with a press of a button. App doesn't have to run in the background Clarification: Not in app screenshot but…