For questions about specific flutter packages. A package can contain dependencies (listed in the pubspec), Dart libraries, apps, resources, tests, images, and examples
Questions tagged [flutter-packages]
462 questions
2
votes
0 answers
How do I create LinkedIn login in flutter web?
I'm trying to create a login with LinkedIn for flutter web and I've tried to use both packages
flutter_linkedin
and
linkedin_login
but it appears to work only on mobile versions, help would be appreciated.

Erick Spencer
- 21
- 1
2
votes
1 answer
Flutter: How to check if home button and power button are pressed in device
How to check if the home button or the power button are pressed in an android/ios device in Flutter App.
There is a package - https://pub.dev/packages/hardware_buttons
Now it is not compatible with Flutter 2.10.
Error - "The plugin…

Tushar Sharma
- 51
- 4
2
votes
1 answer
Showing Interstitial ads every 5 clicks
I have an ElevatedButton to call family member using flutter_phone_direct_caller. I wish to show interstitial ads once every 5 clicks user pushes the ElevatedButton. The code below works fine but after 5 clicks, the interstitial ads show up every…

carry
- 91
- 7
2
votes
2 answers
Flutter package's own import target URI does not exist
I have a Flutter project that I started as a package in order for it to speak to platform specific native code. I've updated several packages lately along with flutter and my
import: package: mypackage/mypackage.dart
is no longer working. The…

Charles Jr
- 8,333
- 15
- 53
- 74
2
votes
1 answer
ScreenUtil parameters are not defined
I followed an old flutter tutorial
with changing all old dependencies which caused a lot of errors ofc,
I was able to fix all of them only this one:
after changing the version of screenutil from 0.4.2 to 5.0.2
I got this error: (and other errors…

AzerSD
- 148
- 1
- 9
2
votes
1 answer
Android build issue with 'scan' plugin - Flutter
Android build failing with following exception.
Plugin: scan [https://pub.dev/packages/scan]
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDevReleaseAssets'.
Could not resolve all files for…

ibiren
- 673
- 6
- 25
2
votes
1 answer
flutter permission_handler Build fail
I am trying to add the package permission_handler to my flutter project but I cannot run the app. I get a build error. This is the error I…

Kevnlan
- 487
- 2
- 10
- 31
2
votes
1 answer
Could not find appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0)
I've added local_auth: 1.1.8 to the pubspec.yaml file of my flutter project and did flutter pub get command without any problem, but when I run the project it can't download some aar files. This is while when I add any other libraries in pub.dev to…

Mohsen Emami
- 2,709
- 3
- 33
- 40
2
votes
1 answer
Flutter Error: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord
I needed to import contacts from mobile, and I used contacts_service from pub.dev. Then I made the changes required in AndroidManifest.xml for android and in info.plist for iOS, i.e, added the required permission, still I am getting this error when…

Mayur Agarwal
- 1,448
- 1
- 14
- 30
2
votes
3 answers
I have an error for import package in flutter
Tips:
(Sorry for mistakes. English isn't my native language)
(I'm new in flutter)
I have many errors in my flutter project. I think that's because of packages. when I write: import 'package:flutter/material.dart';, android studio draw a red line…

Ali sokhanvar
- 29
- 1
- 1
- 2
2
votes
2 answers
flutter / dart: playing music when launching the application and which continues even after redirecting to another page
I am working on a small project on Flutter and Dart. I have several .dart pages in my application, and I would like an autoplay music to play at startup, and that this music continue playing even after switching to another Dart page.
I am using the…

ConceptorWeb
- 31
- 4
2
votes
3 answers
How can I setup simple audio player with background and notification support in flutter
I am using Flutter sound package to play a single audio from a URL and also show notification media controller.
I have tried the demo app on their documentation but its not clear to understand.
The background audio player somehow worked fine but I…

Kaleb
- 43
- 1
- 9
2
votes
1 answer
How to use two different packages together on the same data
I have this two packages which i want to use flutter_linkify and readmore.
linkify turns urls and email in a text into clickable link while readmore cuts long text into shorter one and i want to use both of them in with the same text
String…

Brightcode
- 660
- 9
- 27
2
votes
2 answers
How to convert GIF to a mp4 video in Flutter?
How to convert GIF to a mp4 video in Flutter? With flutter_ffmpeg or any other packages.

Ryan Wang
- 418
- 7
- 23
2
votes
0 answers
CachedNetwokImage - Resize image before rendering
I am making an app that displays a lot of images. I am using CachedNetworkImage for this. The problem is that when I display these images the framerate is really bad. I wanted to resize those images before displaying them so that I reduce the…

Billu Barber
- 43
- 4