Questions tagged [flutter-pub]
35 questions
1
vote
2 answers
How to handle HTTP api request while navigating pages quickly | FLUTTER | DART
For my scenario, I have used flutter http package to make http requests...In home screen I have to send around 3 http requests, Since I had to use await requests are sending one by one.
I have used BaseAPiService class so all the api calls will go…

s.am.i
- 648
- 5
- 16
0
votes
1 answer
Novu push notifications for Flutter
Does somebody know is it possible to use "Novu" notification Simple components and APIs for managing all communication channels in one place: Email, SMS, Direct, and Push with Flutter? I'd like to connect push notification to
my App with Novu in…

Valera
- 19
- 3
0
votes
3 answers
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... Error on line 14, column 6 of pubspec.yaml: Expected ':'
Someone on stackoverflow posted about this issue before and there isn't an answer to this issue.
The issue:
Error on line 14, column 6 of pubspec.yaml: Expected ':'.
╷
14 │ dds: 2.7.10
│ ^
╵
I tried everything that was suggested in…

Ibrahim Gamal
- 1
- 4
0
votes
1 answer
Flutter: Version solving failed in pub get
Situation
I just cloned a Flutter project in which my colleagues are working on, but I cannot make it work on my laptop. I am using a Macbook Pro, the same as them. It works for them, but not for me.
The problem is at flutter pub get or flutter…

JAgüero
- 403
- 1
- 4
- 14
0
votes
1 answer
Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null. In Flutter scroll_snap_list
Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null
I think, reason of this error isn't in my code, because I delete it and left only
import 'package:scroll_snap_list/scroll_snap_list.dart';
It's…

Andrew
- 3
- 1
0
votes
1 answer
Got sockect error trying to find packeage test at https//pub.dev
C:\\flutter\\bin\\flutter.bat --no-color pub get
Running "flutter pub get" in flutter_tools...
Resolving dependencies in ..\\..\\..\\..\\flutter\\packages\\flutter_tools...
Waiting for another flutter command to release the startup lock...
Got…

Anselem Chijioke
- 9
- 5
0
votes
0 answers
Flutter always generates files
Flutter creates .flutter-plugins-dependencies files. Sometimes it also produces some files inside the ios folder (Runner/GeneratedPluginRegistrant.).
I tried to add this file names to .gitignore files. But still creates.
I'm not sure if this is…

Alp Can Marangoz
- 21
- 3
0
votes
0 answers
Firebase messaging and Location pacakages are throwing : Some input files use or override a deprecated API warning, in spite of upgrading
Details of project
Flutter version 3.7.7
Dart 2.194
Problem :
I'm trying to make an android build by running
flutter build apk
it runs assembly.gradle and then the following warning comes up
/*
Note: Recompile with -Xlint:deprecation for…

CrazynooB
- 1
- 1
0
votes
0 answers
I can't pub get my flutter project with no reason
I am learning flutter, and improving myself by doing different projects. But now, I've got one problem for hours. Why I can not pub get my pubspec.yaml file? I have Internet connection.But I can't get any package and can not pub get it.
I tried it…
0
votes
1 answer
Dart/Flutter Pub - publish to lokal Server
We have a local Gitea server at http://git.ourname.local/ and since version 17, Gitea supports Package Registry.
Now we want to use it with Flutter/Dart to host our own packages.
We followed this instruction https://docs.gitea.io/en-us/packages/pub/…

F.M.
- 630
- 1
- 5
- 18
0
votes
2 answers
Project files can't see library
There are many libraries I use every day from pub and they work. But today I run into a problem with qr_code_scanner. After installing it with flutter pub add qr_code_scanner and running flutter pub get, I get in code:
Same with auto import for…

mcgtrt
- 657
- 6
- 22
0
votes
1 answer
Flutter: Use Icon Font From Another Package
I developed separated UI package for my project.
Here is it's simplified structure:
project:
│
...
│
├── lib:
│ │
│ └── classes using AppIcons.ttf:
│
└── packages:
│
└── ui-kit:
│
├── lib:
│ │
│ └──…

Sergey Lobanov
- 91
- 5
0
votes
1 answer
flutter format not accepted by pub.dev
In the score tab of a Flutter package on pub.dev, I get 10 points removed because of formatting.
Though, I did run flutter format . within the project root directory.
The file mentioned in the score tab was successfully formatted by the…

luvzfootball
- 710
- 1
- 9
- 21
0
votes
1 answer
So, because postureapp depends on both audioplayers ^0.17.0 and flutter_driver any from sdk, version solving failed
After a long time, I am trying to run my flutter project that used to run successfully. After doing flutter upgrade, I get the following dependency error. I have tried multiple possible fixes from similar issues I have found, but I still get similar…

Simon Iyamu
- 81
- 1
- 6
0
votes
0 answers
Same Form widget for two different routes in flutter
Actually I had created a page that contain form widget
addInventoryPage with formkey(GlobalKey()) and there is some business requirement to use the same page with different routes
(routes1:/inventory,routes2:/openingInventory) with some…

MrVaishnav Kuldeep
- 95
- 1
- 10