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

How to add network image in pdf in flutter?

Hello guys, I was trying to add network image in the pdf. The pdf is created using printing: ^5.5.0 plugin . I am getting run time error. Please help out, Thanks in advance. previewpage.dart final pdf = pw.Document(); …
4
votes
0 answers

How to make Adobe XD to Flutter code responsive without using any hardcoded values?

I was trying to convert one of my screens designed in Adobe XD to Flutter code but was not quite satisfied with it's outcome. The screen that I imported looks something like this: From UI point of view, everything was nearly similar, but when I…
4
votes
4 answers

Flutter Package : Uncompressed package archive is too large

I am trying to upload my Flutter package to pub.dev. Dry Run work fine no error shown. But When I upload the same package to pub.dev, upload fails with "Uncompressed package archive is too large(size > 104857600). Any suggestion/solution how to get…
4
votes
1 answer

Multiple Unresolved class in AndroidManifest.xml. Error when using sharing_intent plugin MissingPluginException

I know that I'm asking two questions at once, but I don't know if it could be related. I can't get to solve all the unresolved classes from the AndroidManifest.xml I've tried multiple things: Invalidating Caches/Restart flutter clean Adding…
4
votes
0 answers

Flutter plugin java.lang.NoClassDefFoundError: Failed resolution of error for aar library

I have created a plugin which is just a wrapper around native sdk for android and ios. For Android I have aar file which I have imported in the plugin . I can access the sdk class in the plugin file in the IDE, But when I run the example app of the…
4
votes
3 answers

How to implement FIDO2 (WebAuthn) for Android and IOS

I developed a web app which uses WebAuthn API to authenticate using hardware security keys. It works fine. I am trying to implement it natively using Flutter with compatibility for both IOS and Android. Are there any libraries or starting point for…
tambre
  • 51
  • 1
  • 2
4
votes
2 answers

How do you register an Android Service in a Flutter Plugin

I am creating a card reader integration that uses and Android Service for part of the integration. The standard Android implementation includes an android service definition in the AndroidManifest.xml
dazza5000
  • 7,075
  • 9
  • 44
  • 89
4
votes
2 answers

Add mask to camera

I am new on Flutter and trying to do an app that use camera. So, everything works fine and I am using image_picker lib. Now, I need to add a mask for my user to capture using this mask to position the document (like a overlay) but I can't find…
Gustavo Oka
  • 79
  • 1
  • 6
4
votes
2 answers

Flutter Cannot complie project when using Firebase In App Messaging plugin

I successfully implemented the plugin on android but when I try to start the app on ios I'm getting an error message. When I disable the plugin and reinstall the app on ios, everything works just fine. Here is my console log: Launching lib/main.dart…
4
votes
1 answer

Error in IntelliJ when building flutter app

I get the error below when trying to build an flutter app in IntelliJ Error:Internal error: (java.lang.ClassNotFoundException) javax.xml.bind.annotation.XmlSchema java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at…
Victor Timofei
  • 334
  • 4
  • 13
4
votes
0 answers

Creating a Flutter torrent stream plugin using torrentstream-android plugin , unable to start the download progress

Url for the below Code : https://github.com/amankapur007/openflix_torrent I am trying to convert https://github.com/TorrentStream/TorrentStream-Android to the flutter plugin . I am able to start the stream and am also able to prepare it , but after…
Aman
  • 226
  • 1
  • 4
  • 17
4
votes
1 answer

How to pause camera preview?

I am using Flutter's camera plugin to get a live camera preview. But I want to freeze CameraPreview when the user taps the button. So that the picture will stay on the screen when the user taps on the button. For example in Android:…
FlutterFirebase
  • 2,163
  • 6
  • 28
  • 60
4
votes
2 answers

Flutter: How would I create calendar plugin?

Scenario Background I want users to be able to reserve 1 hour time spots displayed as grid where the y-axis is the time and the x-axis is the date. both axis needs to be scrollable to change date and time. Kindly find below screenshot I know I need…
xiarnousx
  • 575
  • 6
  • 18
4
votes
0 answers

Option to create a new Flutter project is missing after upgrade of Android Studio (3.4) and Flutter Plugin (38.2.1)

After upgrading Android Studio to (3.4) and my Flutter Plugin to (38.2.1), the option to create a new project is missing from the Android Studio startup screen. I've tried the following things detailed below. Any suggestions to fix this would be…
Kelly M
  • 41
  • 3
4
votes
2 answers

opening camera from image_picker package in flutter crashes app on real device but works fine in emulator (android)

I am using flutter image_picker: ^0.6.0+17 to get image for a product in app it absolutely works fine on emulator, but on real android device the app crashes and restarts when i click 'open camera' button. i have tried to use the emulator as same…
Akshit Ostwal
  • 451
  • 3
  • 14