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
0
votes
1 answer

Running "pub install" for dart-html5-samples leads to weird errors

I encountered some weird errors when running "pub install" for dart-html5-samples. The first one was: Illegal argument(s): join(): part 0 was null, but part 1 was not. The second one was: Running pub install ... Pub install failed, [1] Resolving…
Shannon -jj Behrens
  • 4,910
  • 2
  • 19
  • 24
0
votes
1 answer

packages from pub aren't installed properly

I have the following project: I have packages configured via pubspec.yaml : dependencies: web_ui: any After installing from pub the console output wrote that everything is ok: Running pub install ... Resolving dependencies... Dependencies…
vovacodes
  • 525
  • 4
  • 14
-1
votes
2 answers

Flutter/Dart: Extract numbers from an image (offline)

I have an image uploaded by the user, which can be viewed here. My goal is to extract the number present inside the image and utilize it later within the application. Unfortunately, the libraries I have tried so far did not produce the desired…
-1
votes
1 answer

Image_picker does not work for Android 13 on Flutter

"Hello, Android users with version 13 are not able to view the photo gallery, either to change the user's photo or to post a photo on the app's timeline. Once the load is set to true, it remains in that state. Here is a block of code for better…
-1
votes
1 answer

I can't generate localization files

ERROR: Failed to generate localization files. RangeError (end): Invalid value: Not in inclusive range 9..11: 6 Process finished with exit code 2 flutter_localizations: sdk: flutter local_auth: ^2.1.3 loggy: ^2.0.3 intl: ^0.18.0
-1
votes
1 answer

How to calculate RMS in flutter?

Is there any technique or package that calculates Root Mean Square(RMS) in Flutter? I searched many blogs and packages but didn't find useful resource related to RMS implementation in Dart
paul
  • 519
  • 6
  • 13
-1
votes
2 answers

How to use SingleChildScrollView

this is my code... it says errorerror SingleChildScrollView( child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ weightIndicator( 0, …
cindy
  • 11
  • 1
-1
votes
1 answer

Flutter Table Calendar : Showing Event from API to Table Calendar Pub version table_calendar: ^3.0.6

Hi This is my code im new to flutter kindly help me with the when I execute this im getting an error at the value Notifier for the _selectedEvents. im trying to use the API to fetch the data which in the following json format as the package is…
-1
votes
1 answer

The error massage show "The argument type 'Image' can't be assigned to the parameter type 'String'. " How can i convert the parameter into a String?

enter image description here//I had declared the image URL in the other dart file as String so that each image can be displayed to the related articles. But the parameter can accept String as the items. How can I convert the items i as string?
YYK
  • 13
  • 5
-1
votes
1 answer

How do i scroll a container to hide inside another container?

please how do i scroll a container so it appears just like it does in the image below. i don't want the container to hide behind another container. i want the container to scroll into another container when you scroll it. i already know about using…
Mr Man
  • 67
  • 1
  • 8
-1
votes
1 answer

Expected a value of type 'Widget', but got one of type 'Null'

i am learning responsive web but i am stuck here in some kind of error like Expected a value of type 'Widget', but got one of type 'Null' don't know how to fix this error i tried a lot but i think i can't solve this without someone's help. import…
-1
votes
3 answers

In TextField( ) why we use " onSubmitted : " syntax?

Why do you use onSubmitted: option in TextField(), I wanted to make Textfield than the option onsubmited came and i didnt understand anything changes in the final result , can anyone plz explain it to me that why we use onSubmitted option? this is…
Mou Biswas
  • 157
  • 2
  • 14
-1
votes
1 answer

How do i return a checkbox value flutter

I am have this app that uses a checkbox to receive inputs from users, for example select a type of storage you want (NVMe, ssd, hdd etc) i want a solution that if a checkbox or multiple checkboxes are selected, it outputs their values on the summary…
-1
votes
1 answer

How to identify final or dynamic value properties is bool or int in Flutter

// FirstScreen final result = await Get.to(SecondScreen()); //SecondScreen //First button onTap Get.back(result: 10) //second buton onTap Get.back(result: true); How can I identify the result is bool or int type when back to the second…
-1
votes
1 answer

How do we POST dynamic list in flutter

given below is the response json im getting. { "result": { "files": { "docType1": { "fileFound": true, "details": { "name": "Aadhaar Card", …