Questions tagged [flutter-pub]
35 questions
47
votes
7 answers
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 delete the packages in .pub-cache folder using the…

Dharanidharan
- 1,038
- 1
- 9
- 15
17
votes
5 answers
pubspec.yaml has no lower-bound SDK constraint
I was taking MDC101 flutter code lab. I cloned the starter project from the git repository as per the instructions but after clonning done, I executed flutter pub get and it gave me the following error.
pubspec.yaml has no lower-bound SDK…

Feroz Khan
- 2,396
- 5
- 20
- 37
13
votes
7 answers
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 'Get Dependencies'
I tried it but it shows me an…

Krunal
- 77,632
- 48
- 245
- 261
5
votes
2 answers
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 flutter pub cache repairand also cleaned the project…

Rudr Thakur
- 330
- 3
- 12
5
votes
6 answers
Flutter: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null
Recently, my Debug Console was showing something that wasn't showing before. This happens when I use package flutter_typeahead. I don't know if this is an error or a warning. Below is my Debug Console:
Launching lib\main.dart on Chrome in debug…

My Car
- 4,198
- 5
- 17
- 50
4
votes
3 answers
Error when compiling and in flutter pub upgrade and pub outdated
I am creating an application in flutter and everything was going well, but at the moment it started giving me an error. It won't let me compile and flutter pub upgrade and flutter pub outdated don't work, but flutter pub get if it works fine.
I am…

Leito UpperClass
- 51
- 1
- 1
- 2
4
votes
2 answers
flutter pub publish returns error 69: Connection closed before full header was received
I have a severe problem for a few days now, since I'm the maintainer of a Flutter package that needs to be updated to run properly. Whenever I try to publish it by running flutter pub publish I get the output:
Connection closed before full header…

Martin Braun
- 10,906
- 9
- 64
- 105
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…

Amit Kalghatgi
- 357
- 3
- 16
2
votes
1 answer
Can I remove or hide or or rename a flutter Package from Pub.dev?
I am new at flutter, I published a package on pub.dev but due to some issues, I have to remove or rename it from there (https://pub.dev/). I want that no one can see it by searching it.
I 'Discontinued' it from pub.dev, but it is still visible from…

Faizan Ahmad
- 352
- 4
- 20
2
votes
5 answers
Pubspec.yaml what this file does in Flutter
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
sqflite: any
path_provider: any
intl: ^0.15.7
# The following adds the Cupertino Icons font to your application.
# Use with the…

Hassan
- 23
- 8
1
vote
0 answers
Cannot able to connect socket.io in Flutter
I am trying to connect socket.io using this package socket_io_client: ^2.0.0 when I tried to connect it gets a timeout on onConnectionError. I have shared my code below
socket.Socket webSocket = socket.io(constant.demoSocketUrl,
{
…

Minato
- 302
- 3
- 15
1
vote
0 answers
Whats the difference between dart run vs flutter pub run
I downloaded the Mockito library (https://pub.dev/packages/mockito) and followed the instruction to use "dart run build_runner build" to generate mocks in my project directory and it failed with the following error.
Could not find a file named…

gd08xxx
- 338
- 4
- 11
1
vote
1 answer
How to log the entire verbose output of flutter pub publish -v?
When running flutter pub publish -v you can see the verbose output in the console, but it's very long, too long for most Terminal buffers.
The binary seems to bypass the stdout on verbose text, so how can I log the entirety of the command into a…

Martin Braun
- 10,906
- 9
- 64
- 105
1
vote
1 answer
How to know what library requests particular iOS permissions in Flutter?
I'm developing a Flutter app that relies on several external libraries. I don't use the camera in the app, however when I try to submit the app to AppStoreConnect, Apple rejects my app because they say that I don't have the NSCameraUsageDescription…

Ale TheFe
- 1,540
- 15
- 43
1
vote
0 answers
How to add pub dev libraries at time of flutter create?
I am creating a script to automatically create a flutter project. In this, I want to add few libs in pubspec.yaml file everytime a project is created by this script.
i tried using flutter pub add http in the script after flutter create myapp but its…

Himakshi Choudhary
- 59
- 5