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

How to maintain Webview state with BottomNavigationBar in Flutter

I'm creating a Flutter application that uses a BottomNavigationBar to change between pages. In one of the pages, I have a Webview (I'm using the plugin developed by the Flutter dev team) and I can't get to keep the state of the webview when I…
4
votes
2 answers

Flutter plugin to download torrents

I want to develop a flutter app to search and download files from torrent. The searching part is done but now I'm out of any idea how to implement the download functionality. I want to download the actual file that the torrent file or the magnet…
T Hansda
  • 111
  • 1
  • 9
4
votes
1 answer

Hot reloading native code changes in Flutter (Plugin Development)

I'm writing a plugin for Flutter on Android that makes use of native code. To my understanding the only way to see the changes in effect is to completely restart the app. Is there another way to do this? Something like Flutters Hot Restart? It takes…
F.Fidler
  • 60
  • 5
4
votes
3 answers

NFC read/write with flutter

I'd like to give a try with flutter, but so far I have found only NFC reader plugin. I will need two other things. react on NFC tag present intent and then maybe use NFC plugin to read it write to NFC tag, probably using Platform channels I just…
Zveratko
  • 2,663
  • 6
  • 35
  • 64
4
votes
1 answer

Convert Cordova Plugin to Flutter Plugin

I'm now converting my Android POS App to use Flutter Framework, my existing App was using Cordova Framework. For this POS application, I used Cordova Bluetooth Printer Plugin to deal with a portable bluetooth printer as an output printer. Now, I…
Nugraha
  • 43
  • 4
3
votes
2 answers

Flutter Modular redirect to 404 page

I used flutter_modular for flutter web to navigation. import 'package:flutter_modular/flutter_modular.dart'; class AppModule extends Module { @override final List binds = []; @override final List routes = [ …
3
votes
1 answer

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 inside my Android module, but now I'm stuck on…
3
votes
1 answer

How *Exactly* to Access Flutter Assets From Within Android Java *Plugin* Platform Code?

We want to define a Flutter asset that can be accessed from the Android platform code within the same plugin. The documentation for this is purported to be here. Please note we are NOT talking about custom platform code within a flutter app -- we…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
3
votes
0 answers

How to fix Exception: Unsupported Android Plugin version: 4.2.0

I run a flutter app but I got this error" Exception: Unsupported Android Plugin version: 4.2.0. " I tried updating all the plugins and android studio but I still get this error and I don't understand the other solutions in StackOverflow to the same…
3
votes
1 answer

How to Download Output Widget screenshot as image In Flutter Web?

I want to download widgets screenshots as an image file in flutter Web. Is there any to do this? By the way for converting the widget to Uint8List, I am using the screenshot plugin.
3
votes
1 answer

Is there a way to specify the file name in advance for the picture taken with the flutter camera plugin?

Hi I am using the flutter camera plugin and it works fine, the main issue I am having is that I can't find a way to tell the plugin the image file name when taking the picturee, in android using Kotlin this would be something like: photoUri =…
groo
  • 4,213
  • 6
  • 45
  • 69
3
votes
0 answers

How to access MethodChannel from a Java's Service class?

I am new to writing native Android Java code. I'm trying to invoke a Dart method using Flutter's MethodChannel from another Java class that extends a Service and doesn't have the configureFlutterEngine. How would I achieve this?
Tembero
  • 387
  • 3
  • 11
3
votes
1 answer

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 sometimes the plugins used may not be compatible with…
3
votes
0 answers

How can I make a camera application using flutter desktop?

I want to make a custom camera application using the flutter desktop but unfortunately I'm not able to find any suitable plugin for that. Is there a way to make a custom plugin that would help me access the camera of my computer?
3
votes
1 answer

Create Story from camera in Flutter

I want to create a story in my app just like as we upload story in snapchat. In other words when I tap on add story button in my app then a screen should appear to take picture or record video from camera. Please help me how i can make it or if any…