Questions tagged [flutter-packages]

For questions about specific flutter packages. A package can contain dependencies (listed in the pubspec), Dart libraries, apps, resources, tests, images, and examples

flutter-packages
Filter by
Sorted by
Tagged with
507 votes
35 answers
491k views

How to change package name in flutter?

Is there any way to change Package Name of Flutter project? I want to change package name and application name in flutter project.
Abc Xyz's user avatar
  • 6,307
281 votes
41 answers
404k views

Visual Studio Code - Target of URI doesn't exist 'package:flutter/material.dart'

I've just set up my Macbook for flutter development, So I downloaded flutter SDK, and placed it in my Documents. After, I set up my path variable to work with flutter in my command line. I execute the ...
James's user avatar
  • 3,770
50 votes
14 answers
48k views

FlutterFirebaseCorePlugin.java uses or overrides a deprecated API

Ok so I run my program without importing firebase core, firebase auth and cloud firestore, and my code runs just fine but I register my app with firebase and it still runs fine but as soon as I import ...
Fred_Wolfe's user avatar
48 votes
7 answers
96k views

Flutter command to delete packages in .pub-cache folder

How to delete the flutter packages in .pub-cache folder? When we give flutter clean, it will delete the build folder in the current directory. We can delete it manually, but my requirement is to ...
Dharanidharan's user avatar
41 votes
10 answers
53k views

How to remove or identify unused packages from flutter to reduce size of the project?

I used some packages that I no longer need in my flutter project, namely the wilddog_auth and wilddog_sync, I can remove the imports from pubspec.yaml file, and my dart files (aka removing import '...
Aero Wang's user avatar
  • 8,859
28 votes
2 answers
7k views

Can anyone tell the difference of "flutter_bloc" and "bloc" packages in Flutter

I am getting started with Bloc in Flutter. Can anyone tell what is really "flutter_bloc" and "bloc" packages I have these questions. are they same. when/how to use this. Thank ...
Abhin Krishna KA's user avatar
26 votes
5 answers
16k views

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....
Shahzad Akram's user avatar
24 votes
8 answers
38k views

Flutter Error: No named parameter with the name 'displayLarge'

I am working on an app, I posted last update on git 2 days ago and haven't touched the code since. Now, I opened android studio and it was giving me this error when I tried to run it... I tried ...
Karlo Kajba Šimanić's user avatar
22 votes
11 answers
40k views

Target of URI doesn't exist 'package:flutter/material.dart'

My Flutter IDE (Android Studio) doesn't recognize material.dart anymore! It happened suddenly, I was working normally then my PC turned off because of CPU 100% consumption and when I restarted I found ...
Farah Bédoui's user avatar
20 votes
3 answers
4k views

How to add localization support inside Flutter packages

I am creating a Flutter package that has some text inside it. I want the consumer application of my package to pass locale to it, based on that locale my package should decide whether to show this ...
Taha Ali's user avatar
  • 1,276
19 votes
9 answers
31k views

Pod install error on M1 Mac - Flutter project with native code like shared_preferences

I'm on a MacBook Pro M1 (and before someone says well it's because of M1 or something else, I've been programming with Flutter and M1 for weeks but then I must have to reset my M1 and after this) ... ...
Talal Zeid's user avatar
16 votes
2 answers
17k views

What is the difference between flutter plugin and flutter module?

I am new to flutter plugin development, I have read Developing packages & plugins and Writing a good Flutter plugin, but I am confused as a beginner, I have developed Flutter Application based on ...
Shahzad Akram's user avatar
15 votes
1 answer
12k views

Using Flutter Downloader plugin, after download app closes

I use flutter_downloader package. After complete download some files, my app closes automatically and disconnects from the android studio. Anyone help me to find solutions. final status = await ...
Harsh Sureja's user avatar
  • 1,224
15 votes
12 answers
44k views

flutter pub get is stucking

When I run in terminal flutter pub get is stuck it's showing OS MacOS Catalina 10.15.3 Got TLS error trying to find package launch_review at https://pub.dartlang.org. ...
Yunus's user avatar
  • 195
13 votes
4 answers
35k views

"flutter pub get" can't get dependency plugins [duplicate]

I've been trying to get dependencies for my Flutter project on Windows but it's taking a long time and after a while , it shows this error in 'messages' bar. Running "flutter pub get" in ...
Md Mahmudul Islam's user avatar
13 votes
7 answers
69k views

Flutter: pub get failed

Flutter project showing me a warning 'Packages get' has not been run with suggested solutions, Get Dependencies Upgrade Dependencies Ignore As suggested by Darky, in this answer to go ahead with '...
Krunal's user avatar
  • 78.5k
12 votes
8 answers
8k views

Error: Type 'FontFeature' not found. Flutter google_fonts package error

When using the latest version of google_fonts (6.2.0) package in flutter project, I'm facing this 'Type FontFeature not found' issue: /C:/Users/Dell/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-...
Afrad Ahsan's user avatar
11 votes
5 answers
15k views

How to pass data from one provider model to another?

I want use provider (ChangeNotifierProvider) and ChangeNotifier for manage app state. But how I can access state from one model in another model? Use case: In chat app, one model for store user ...
FlutterFirebase's user avatar
11 votes
6 answers
4k views

Unknown behavior with hot reload when using the go_router package

I was using go_router in a project. I had a separate file with an instance of GoRouter with all the routes (home, login, register). Then, I added authentication with a cubit. So I had to modify my ...
Miguel Yurivilca's user avatar
11 votes
2 answers
4k views

Unable to select image using flutter image picker on iOS simulator

I am learning how to select images from gallery. I have implemented flutter image picker for the same. But when I try to select the image in simulator, I am not able to do so. Please help Flutter ...
OM KALE's user avatar
  • 194
10 votes
2 answers
31k views

How to connect flutter with MongoDB

I have a website build with Nuxt JS and MongoDB. I want to create a mobile app with flutter and I don't know how to connect flutter with MongoDB. Give me some code examples. Here is the solution! (...
Rohit Nishad's user avatar
  • 2,668
10 votes
4 answers
11k views

How to solve 'could not find package integration_test in the Flutter SDK' error

I have an app, it is very simple and I keep getting this error: pub get failed (server unavailable) -- attempting retry 1 in 1 second... Because bascis depends on integration_test any from sdk which ...
Mohamed AbdelraZek's user avatar
10 votes
1 answer
7k views

Flutter: Display log in release mode in iOS

I'm trying to display logs in release mode in iOS to test my in App Purchases... I tried print() & log() but nothing works Fun fact, it works in Android. Do you know how to do that? Thank you
Naografix's user avatar
  • 899
8 votes
1 answer
37k views

How to correctly use BlocListener and BlocProvider in Flutter App

I am using flutter_bloc 4.0.0 in my Flutter App, I used the example from Felix Angelov (https://medium.com/flutter-community/firebase-login-with-flutter-bloc-47455e6047b0) on implementing a sign in or ...
K.chim's user avatar
  • 908
8 votes
2 answers
6k views

How to access assets in package

The original question comes from flutter issue 32799 I develop a dart package, i need load some json file in runtime, but when I do this occur an error. load image is no problem ,the code: void main()...
littlegnal's user avatar
8 votes
4 answers
3k views

What's the difference between flutter_local_notifications and awesome_notifications?

What's the difference between flutter_local_notifications and awesome_notifications packages for notification? After reading through docs and repository I understood, that historically ...
Konstantin Kozirev's user avatar
8 votes
0 answers
737 views

How to add Localizations to a Flutter package without a MaterialApp?

I am moving some widgets of my app into a seperated Flutter package. These widgets use AppLocalization to display localized Strings. I want to define the Strings inside the package. In the package ...
Smofe's user avatar
  • 91
6 votes
6 answers
9k views

Create a package in dart

How do I create a package in the new Dart Editor? There is no "Add Pub support" checkbox? Also how to create "packages" with the new editor? Is a tutorial out there that describes ...
mc_fish's user avatar
  • 493
6 votes
1 answer
3k views

Flutter force higher package dependency version

TLDR: How to force a specific Flutter package (library) version for the entire app? Let's suppose I have the following dependencies in my pubspec.yaml file: dependencies: flutter: sdk: flutter ...
kosiara - Bartosz Kosarzycki's user avatar
6 votes
6 answers
9k views

Can't build a flutter project with PathProvider dependency

Disclaimer: First of all, this is my early attempt to play with Flutter. So forgive me if is a noob question. I had been playing with an MVP-Clean architecture for Flutter apps in iOS, and when trying ...
MiguelCatalan's user avatar
6 votes
1 answer
3k views

How to solve flutter project compile Debug Kotlin error

I'm new to flutter development. I used audioplayers: ^0.19.0 package in one project but when the project runs on an emulator it pops up with big error messages. Can you guys please help me to solve ...
Isuru Akalanka's user avatar
6 votes
0 answers
338 views

Flutter package for creating git hook in ./.git/hook folder of Flutter project [closed]

I already have a pre-commit hook in my project, but I want to force all people in my project to use it. For that purpose, I want to write a flutter library for creating files in a flutter project ...
no_fate's user avatar
  • 1,655
5 votes
1 answer
12k views

Flutter url_launcher open Facebook link inside app(Facebook) installed but in IOS it just open facebook and not the link

I have used Url_launcher package;I want to open Facebook link in facebook app if app installed else the browser.This nicely works in Android but in IOS it only open the Facebook app not the link. The ...
Sunil's user avatar
  • 153
5 votes
5 answers
23k views

Flutter Error: no named parameter with the name "overflow"

I am working on an app in flutter, and everything was working fine when suddenly one day when i tried to run the app it get me this error: /C:/sdk%20Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/...
miguel saldivar's user avatar
5 votes
1 answer
2k views

error The argument type 'PdfImage' can't be assigned to the parameter type 'ImageProvider'

I am trying to make pdf from screenshot with screenshot and pdf plugins in flutter. When I pass Uint8List to pdf creation function I am getting error at PdfImage.file(pdf.document, bytes: screenShot ...
Ananthakrishna's user avatar
5 votes
1 answer
3k views

Using flutter how to merge audio file with sync of any video like camera action like that there is any specific package is available in flutter

I have been searching for the packages or any method for the particular problem, i googled but i didn't find any solution , So my issue is , i want functionality like ticktock App , user can select ...
Pavan Kumar's user avatar
5 votes
1 answer
892 views

Creating native ios framework(. framework) and Android jar using flutter project

Is it possible to create ios framework or Android jar from a flutter project? I mean if I'm having a Flutter project, I'm sure i can create a flutter package out of it and use it around any flutter ...
Vineet Ravi's user avatar
  • 1,486
5 votes
2 answers
2k views

flutter_pinput: FocusTapArea is not defined

After upgrading to Flutter 3.1.x, the package flutter_pinput doesn't work anymore. Any suggestions would be helpful. It was working fine in flutter 2.x.x. I have tried repairing the cache using ...
Rudr Thakur's user avatar
4 votes
3 answers
1k views

How to login/logout in flutter pub publish?

I am trying to publish upgrade for my package and getting error: Insufficient permissions to upload new versions of package... I am signed in in Chrome to pub.dev with account that is administrator ...
polina-c's user avatar
  • 6,561
4 votes
3 answers
8k views

Flutter version solving failed on google_maps_flutter while running "flutter pub get"

I'm getting below message in output while running flutter pub get even though I've downgraded google map package to google_maps_flutter: ^0.5.33 which is <1.0.0. [proj_name] flutter pub get Running ...
Faizan Kamal's user avatar
  • 1,962
4 votes
3 answers
2k views

Flutter iOS Build Error - framework image_picker not found

I have added v0.8.5 of image_picker library in my project. I have tried following things to solve the issue: Deleted podfile.lock & Pods folder from iOS Directory Deleted pubspec.lock file from ...
Milan Surelia's user avatar
4 votes
4 answers
6k views

Using Google ML-Kit On-Device Text Recognition in Flutter

Is it possible to use Google ML-Kit On-Device Text Recognition in Flutter? All of the tutorials and resources I am finding online are all firebase_ml_vision, but I am looking for one that uses the no-...
ums2026's user avatar
  • 147
4 votes
3 answers
6k views

can I use Getx and Bloc state management in one project ( Social Network app , big project ) without problems?

My project is a Social network hybrid mobile app that is made with flutter, dart ( frontend ) and Nodejs as a backend, the point that I hired front end developers that made part of the project ( 35 % ...
Youssef Abdel Zaher's user avatar
4 votes
2 answers
4k views

how to generat or create "appcastURL" for upgrader package in flutter?

I want to show dialog for user when new version of app is available on play store or google play, to do that I used Upgrader package from flutter. This package use "AppCast" class. the code ...
Noor Allan's user avatar
4 votes
1 answer
3k views

Flutter husky package for creating git hooks

I already have a pre-commit hook in my project, but I want to force all people in my project to use it. For that purpose, I want to write a flutter library for creating files in a flutter project ...
no_fate's user avatar
  • 1,655
4 votes
4 answers
858 views

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(...
Amit Kalghatgi's user avatar
4 votes
0 answers
622 views

Prayer Time Alarm

Prayer Time Alarm: Is there any way to awaken my app in background when the Current time is equal to Prayer Time. background_fetch package is there but it awaken app after every 15 minute interval. ...
Harry Mian's user avatar
4 votes
1 answer
501 views

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 ...
Brightcode's user avatar
4 votes
1 answer
2k views

is it possible to take a picture without the preview and user interaction?

I need to create an online examination application in flutter, where we need to take photo and video of a user at some intervals, and while doing this we don't want to show the camera screen. I tried ...
Mrunal's user avatar
  • 588
4 votes
0 answers
658 views

Is it possible to compile a flutter package to import only the resulting binary in the project?

I'm new to flutter, I've been creating a few packages in flutter that would be imported in several other (flutter) project. This packages are independently versioned. My question is 'Is it possible ...
Guilherme Ferreira's user avatar

1
2 3 4 5
10