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
243
votes
28 answers

Check whether there is an Internet connection available on Flutter app

I have a network call to be executed. But before doing that I need to check whether the device have internet connectivity. This is what i have done so far: var connectivityResult = new Connectivity().checkConnectivity();// User defined class …
Rissmon Suresh
  • 13,173
  • 5
  • 29
  • 38
225
votes
30 answers

Flutter plugin not installed error; When running 'flutter doctor'

I am configuring the Flutter SDK on my Linux Ubuntu 16.04 (Xenial Xerus) system. Why am I getting the following error when I run the flutter doctor? I have specified both PATHS for flutter and dart in the .bashrc file, but I get this error when I…
Philip Mutua
  • 6,016
  • 12
  • 41
  • 84
121
votes
10 answers

MissingPluginException while using plugin for flutter

I am trying to use the plugin _launchURL(url) async { await launch("www.google.com"); } I have put "www.google.com" just for debugging purposes. The error I get is MissingPluginException : E/flutter ( 8299): MissingPluginException(No…
Tree
  • 29,135
  • 24
  • 78
  • 98
113
votes
5 answers

Update flutter dependencies in /.pub-cache

I erased in my folder .pub-cache/hosted/pub.dartlang.org/this_plugin What is the command to update the dependencies inside pubsec.yaml? I believe it is flutter packages get The folder under .pub-cache is still not up to date. Note: there was a…
Raymond Chenon
  • 11,482
  • 15
  • 77
  • 110
27
votes
9 answers

Flutter plugin development Unresolved reference: io

Its my first attempt to create a flutter plugin, I created flutter plugin project from android studio and its running fine, when I tried to add platform specific code for android I stuck in some issues, in the same project platform specific code…
Shahzad Akram
  • 4,586
  • 6
  • 32
  • 65
27
votes
6 answers

How to enable Swift support for existing project in flutter

I want to know if there is a way to enable swift support for flutter project. I only enabled Kotlin support while creating the project. I need to enable Swift too. Is there a command I can execute or any setting in flutter plugin for Android studio…
Shashi Kiran
  • 999
  • 5
  • 13
  • 27
23
votes
5 answers

How to use local aar inside flutter plugin?

I've create a flutter plugin with: flutter create --template plugin flutter_plugin I've put my aar file inside flutter_plugin/android/src/main/libs folder I've modified flutter_plugin/android/build.gradle and changed rootProject.allprojects section…
Vladimir
  • 427
  • 1
  • 4
  • 9
22
votes
4 answers

How to add assets in flutter Package/Plugin development?

I am developing a flutter package containing some assets files. I mentioned required assets in pubsepc.yaml as usual like this assets: - assets/abc.xyz and uploaded the package to https://pub.dartlang.org/. After that I created a flutter…
Shahzad Akram
  • 4,586
  • 6
  • 32
  • 65
22
votes
2 answers

How to access camera frames in flutter quickly

I would like to implement near real-time OCR on the camera feed of my flutter app. To do this I would like to access the camera data in a speedy manner. As far as I can tell I have two options, and have hit roadblocks with both: Take a screenshot…
EduardKieser
  • 546
  • 1
  • 6
  • 11
19
votes
5 answers

Invoke Flutter (Dart) code from native Android home screen widget

I added a native Android home screen widget to my Flutter application. In my AppWidgetProvider implementation, I'd like to call dart code in my onUpdate() method using a platform channel. Is this possible? If so, how can this be achieved? My current…
Westy92
  • 19,087
  • 4
  • 72
  • 54
17
votes
1 answer

Is there any support for using Facebook SDK in Flutter?

I would like to add the Facebook app-events to my Flutter project : https://developers.facebook.com/docs/app-events/android https://developers.facebook.com/docs/app-events/ios It relies on the Facebook SDK. However, it seems that there is no…
h19881103
  • 373
  • 2
  • 3
  • 9
15
votes
3 answers

How to manually add a .xcframework to a Flutter iOS Plugin?

I'm trying to create a Flutter Plugin to use a native library. This library I'm trying to use is stored in a private repository and can be used with Swift Dependency Manager. This is causing me a headache, cause I can't add a private repository…
siega
  • 2,508
  • 1
  • 19
  • 22
15
votes
3 answers

The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'

Recently I've updated to flutter 2.5 and the newest androids studio, and tried to compile my flutter project to android device. Android studio throws me the error below. If I write flutter run in a terminal there is no problem compiling to android…
jeffmayn
  • 1,785
  • 2
  • 9
  • 22
15
votes
1 answer

Install native iOS pod in flutter

I am facing an error while making a flutter plugin on the iOS side while using pods. The pods are installed successfully then also I am able to import them in the file. The pod in my case which I am trying to use is Freshchat iOS SDK Steps I have…
nimi0112
  • 2,065
  • 1
  • 18
  • 32
14
votes
3 answers

Scrolling priority when combining horizontal scrolling with WebView

I have a vertically scrolling WebView inside a horizontally scrolling PageView. Something like this: PageView.builder( itemCount: 5, itemBuilder: (context, index) { return WebView( initialUrl: 'https://flutter.dev/docs', …
Ludwik Trammer
  • 24,602
  • 6
  • 66
  • 90
1
2 3
32 33