Questions tagged [dart-pub]

Pub is a package manager for Dart applications and libraries.

Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.

Basics:

  • Use pub get to get dependencies
  • Use pub upgrade to upgrade a dependency
  • Use pub publish to make your library available for others

Resources:

1128 questions
-1
votes
2 answers

How to remove empty lists from a list in Dart?

I have an issue in my Dart Programme. Here is a list of emojis: [[, , ], [], [, , ], [], [], []] //List Inside the list there are multiple lists (as you can see). I want to remove empty lists []. Also I want to Join [, , , , , ] into a single list.
Pro Co
  • 341
  • 3
  • 10
-1
votes
1 answer

How to send image over socket connection?

I have been trying to send image over socket connection from client to server which will be saved on the server. The socket connection works fine for string messages but when I try to send an image, it is not transmitted correctly. Please give me a…
ASAD HAMEED
  • 2,296
  • 1
  • 20
  • 36
-1
votes
2 answers

Could not find a command named "version"

I have used "flutter version v1.20.2" and getting the "Could not find a command named "version" " error. Thanks
Alpit Panchal
  • 709
  • 1
  • 7
  • 25
-1
votes
1 answer

How to convert String to FileImage in Flutter?

I have saved images as FileImage in my docs. i want to upload them to firebase storage. But it throws the error that type String can not be converted into type File. here is my code. String localImage = gg['path1']['path2']['path3'];//this is…
Rohan
  • 55
  • 5
-1
votes
1 answer

Time to word converter

I was wondering if I could make an app in which time is display in words instead of conventional numbers. Do you think that there is any package for dart to convert time or numbers to words? For example 1:30 AM will be One : Thirty AM Thanks for…
Saurav Kumar
  • 125
  • 1
  • 2
  • 10
-1
votes
1 answer

In Flutter, how to wait for non future function to complete?

In Flutter, Data calculation takes time to compute. how to wait for non-future function to complete? Local Data manipulation takes time to complete. how to assign it as a future or wait for the local function to complete?
Anand A L
  • 87
  • 2
  • 7
-1
votes
1 answer

Could not resolve URL "https://pub.dartlang.org".Error (69): Unable to 'pub upgrade' flutter tool. Retrying in five seconds… (10 tries left)

Could not resolve URL "https://pub.dartlang.org". Error (69): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (10 tries left) that is the error in flutter when i create or upgrade flutter: Windows PowerShell Copyright (C)…
-1
votes
1 answer

Could not find a generator for route RouteSettings("/First", null) in the _WidgetsAppState

So, i'm trying to create an app in flutter and cannot work my way around the syntax code. The error is that Could not find a generator for route RouteSettings("/First", null) in the _WidgetsAppState.enter link description here. Ps new to…
Aditya Pandey
  • 355
  • 1
  • 5
  • 12
-1
votes
1 answer

Flutter Client Side Cryptography

How can I hash and return an input in the easiest possible way on a Flutter mobile app? I want the digital signature to be returned client side. Please I seem to be dead ended here.
Ryan James
  • 19
  • 2
-1
votes
1 answer

Dart: Suddenly have Error "Unable to run pub"

I can no longer build my application from the Tools menu "Pub Build - debug" The window alert is: Unable to run pub Please select a pubspec.yaml file before running pub. How does one 'select' a pubspec.yaml file? I have it highlighted in the…
Nate Lockwood
  • 3,325
  • 6
  • 28
  • 34
-1
votes
1 answer

Is it necessary to compile Dart for Chrome

I noticed something by accident. When I create a simple AngularDart application, it runs just fine in Chrome and Firefox (not just Dartium). I understood that this would take an extra step to compile but LO! it runs, as is, in Firefox and Chrome. …
Nathaniel Johnson
  • 4,731
  • 1
  • 42
  • 69
-2
votes
0 answers

The name 'RideRecord' isn't a type it can't be used as a type argument Try correcting the name to an existing type or defining a type named RideRecord

I'm creating a low code app using flutterflow. I tried to follow a tutorial to add Live tracking using google maps .dart but I'm running into this issue with the costum widget. I've checked every detail in the tutorial and nothing suggest I'm doing…
-2
votes
1 answer

How to integrate .DOCX file in flutter

I am working on app where i need to display .docx file within the app. I have a file path like ('storage/emulated/0/file1.docx'). How can i read and display it. Tried alot but not find any good solution.THANKS IN ADVANCE.
-2
votes
2 answers

Dart: A value of type 'String?' can't be assigned to a variable of type 'String'

There are 2 functions. One must return String other save this String in with SharedPreferences. The problem is, that by using prefs.getString() I get not a String but another object. The error called: A value of type 'String?' can't be assigned to a…
Daesslohnt
  • 13
  • 3
-2
votes
1 answer

I want to show loading bar on Specific index in GridView/List View

The issue is that It is showing on all except for only one index
zain ishfaq
  • 105
  • 1
  • 7
1 2 3
74
75