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
4
votes
3 answers

Flutter doesn't recognize valid imports

This just started happening randomly. The app runs fine, but most valid imports are not recognized. This is happening with packages and local files. I've restarted and Android Studio, did a pub cache repair, flutter clean, uninstalled and…
Derek Hannah
  • 537
  • 7
  • 23
4
votes
6 answers

Not able to run flutter app on iOS Simulator

I am not able to run my flutter app on iOS Simulator. It is giving me this error : Launching lib/main.dart on iPhone XR in debug mode... Starting Xcode build... Xcode build done. 7.9s Failed to build iOS…
Snehal Lokhande
  • 125
  • 1
  • 3
  • 9
4
votes
2 answers

What is Mixin Based Inheritance in Dart?

This is definition of Mixin Based Programming from the official Docs, Mixin-based inheritance means that although every class (except for Object) has exactly one superclass, a class body can be reused in multiple class hierarchies. Can anyone…
Shubhamhackz
  • 7,333
  • 7
  • 50
  • 71
4
votes
2 answers

Flutter tween basic animation is not working inside `FutureBuilder`

Flutter tween basic animation is not working inside FutureBuilder I have created a image gallery page using gridview.builder , but the animation doesnt works inside futurebuilder for some reason. I tried same animation on an static image directly…
4
votes
1 answer

Flutter SOAP: How to using SOAP in Flutter?

How to using SOAP Api calls in Flutter? I have tried rest calls is working fine. I need to build SOAP calls in flutter. Kindly share how to call SOAP in flutter
lemuriyan
  • 606
  • 2
  • 7
  • 19
4
votes
1 answer

Flutter- Expansion Panel for TextField

Expansion Panels in flutter are great. They require header and body along with isExpanded property to be declared to be able to construct an Expansion panel. Like this: return new ExpansionPanel( headerBuilder: (BuildContext context, bool…
GoPro
  • 642
  • 1
  • 10
  • 24
4
votes
1 answer

How can I debug Dart Builders with breakpoints in WebStorm

Dart uses the build package to generate code. What if you want to debug your own Builder or an existing one?
HerrJohr
  • 419
  • 3
  • 8
4
votes
1 answer

App Layout of angular components throws error with .scss

I am trying to apply App Layout component of material design angular_components in AngularDart with the following codes, but the system throws an error while applying it through .scss. Kindly help me to know what's missing in the following to make…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
4
votes
3 answers

How do I create a pub package that works with Flutter?

pub is Dart's package manager. Flutter is a mobile app SDK that uses Dart. How can I create a package that depends on, or targets, Flutter?
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
4
votes
2 answers

Dart: "Invalid argument(s): Illegal character in path" when building on Windows

The offending line in my index.html file reads The error report is: Build error: Transform polymer (PolymerBootstrapTransformer) on myproj_frontend|web/index.html threw error: Invalid…
S. J.
  • 1,106
  • 1
  • 10
  • 23
4
votes
2 answers

Pub Error: Incompatible version constraints on analyzer

I have a very weird problem. I have some dependencies that previous to adding a new dependency work well, but as soon as I add a new one (in this specific case async_await) I get an Incompatible version constraints on analyzer error when using pub…
Cristian Garcia
  • 9,630
  • 6
  • 54
  • 75
4
votes
1 answer

How do I set the dart2js --minify option from the command line when executing `pub build`?

For my release process I need several different "modes." However, if I use the --mode option for pub build and set it to any value other than release, it forces un-minified javascript. I know I can configure the dart2js transformer in my…
4
votes
1 answer

In AngularDart, how should I reference my templates in templateUrl so they work for both Dartium and dart2js?

I currently have this directory layout: project web app.html main.dart templates app.html alerts.html menu.html components AppComponent.dart …
Isvara
  • 3,403
  • 1
  • 28
  • 42
4
votes
2 answers

How to run or deploy an app with a git dependency to a private repo

My application has a Git dependency to a private BitBucket repository. my_package: git: url: git@bitbucket.org:myuser/mypackage.git When I run gcloud --verbosity debug preview app run app.yaml I get Resolving dependencies... Git error.…
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
4
votes
1 answer

Dart won't get dependencies

I'm trying to teach myself Dart by using angular dart since I'm fairly familiar with angular. I'm having some trouble though, when I use the dart editor to get my dependencies I keep getting this error Transformer library…
richbai90
  • 4,994
  • 4
  • 50
  • 85