Questions tagged [pubspec]

A pubspec file represents the dependency metadata for a Dart package.

For more information, see Dart documentation.

191 questions
2
votes
0 answers

Why can't I build a Flutter project for iOS with transitive dependencies and statically linked binaries, yet other project with same setup works fine?

I've got 2 Flutter projects, with the same: Podfile pubspec.yaml dependency list Flutter version 3.3.7 One compiles, the other doesn't with the error: - Running pre install hooks [!] The 'Pods-Runner' target has transitive dependencies that…
Dave
  • 5,283
  • 7
  • 44
  • 66
2
votes
1 answer

How to build a app lock application using flutter

I am looking to create a application using flutter that can put locks on other apps according to users choice. So can anyone tell me how to do this using flutter ? Is there any plugins out there ? The app must work like this "when someone opens a…
Melvin
  • 23
  • 4
2
votes
1 answer

How to use my own fork of flutter in `pubspec.yaml`

I need to change some parts of the original flutter code in my project. I know that I can do so in my local copy. However, we are working as a group and I don't want my changes to be local. Also, we will probably use GitHub actions for CD. If I only…
2
votes
0 answers

package is forbidden but only when it's imported

Here's an error I'm getting when trying to save the pubspec.yaml (which automatically runs flutter pub get) (I changed the names of the packages): Running "flutter pub get" in ravencoin_front... Because every version of package_b from path depends…
MetaStack
  • 3,266
  • 4
  • 30
  • 67
2
votes
1 answer

Flutter project Dart sdk version refuses to update

I've been getting this error anytime I try to run my application. I've tried everything from upgrading flutter to adding dependency_overrides but nothing has…
Robinson T
  • 101
  • 2
2
votes
2 answers

How to fix "Error detected in pubspec.yaml: Error on line 74, column 2: Expected ':'."

when I press (Ctrl+s) to save my pubspec.yaml on my flutter project, this display in output: enter image description here what's the problem? and how to fix it? here's my pubspec.yaml file: name: store_app description: A new Flutter…
razan
  • 23
  • 4
2
votes
1 answer

Deleted pubspec.lock regenerates with newer package versions?

To repair our pubspec.lock file during development, I occasionally delete it and run flutter pub get to regenerate it. What I'm seeing now is, I run flutter pub get and no changes are made to the pubspec.lock file. But, when I delete pubspec.lock…
buttonsrtoys
  • 2,359
  • 3
  • 32
  • 52
2
votes
1 answer

Because project depends on flutter_localizations any from sdk which depends on intl 0.16.1, intl 0.16.1 is required

Okay so i have built an app nearly a year and half ago for my company, my boss recently wanted me to add a new screen to it and i did using all old and deprecated code of firebase and everything else (i really really dont wanna update them because i…
azheen
  • 897
  • 4
  • 15
  • 30
2
votes
0 answers

flutter how to use pubspec_parse package?

How should I use pubspec_parse to get name and version from pubspec.yaml in flutter? Thank you for your help in advance. https://pub.dev/packages/pubspec_parse
2
votes
6 answers

Flutter pub get version solving failed

I'm getting this issue with flutter pub get, tried to update the dart sdk, restart the pc to add the Dart sdk location back to the environment variables, delete the .git folder. Running "flutter pub get" in calculator... The current Dart SDK…
Kaya Ryuuna
  • 554
  • 2
  • 4
  • 18
2
votes
1 answer

The plugin `flutter_webview_plugin` uses a deprecated version of the Android embedding

I have upgraded the flutter version to the latest (2.5.2). when I upgrade, some dependencies also upgraded. but some of them are not compatible with null-safe. Now I upgraded all dependencies which are supported to null-safe versions. Now occurred…
Tharindu Lakshan
  • 3,995
  • 6
  • 24
  • 44
2
votes
1 answer

Could not find appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0)

I've added local_auth: 1.1.8 to the pubspec.yaml file of my flutter project and did flutter pub get command without any problem, but when I run the project it can't download some aar files. This is while when I add any other libraries in pub.dev to…
Mohsen Emami
  • 2,709
  • 3
  • 33
  • 40
2
votes
1 answer

Chrome or web is not working in flutter 2.05 keep giving so much errors and failed to compile

keep trying to open chrome in flutter, before it was working now every time I try to run it it throws many errors in the terminal then says failed to compile. please help, iOS and android is working fine tried in beta master and stable release…
shahbaz
  • 145
  • 2
  • 16
2
votes
0 answers

How to implement Build Variants/Flavors in Dart pubspec like in Gradle?

Gradle has a convenient feature to implement separate build variants/flavors. Is there such feature in Dart (not Flutter)? I need to implement different codebases (different implementations) for one project, depending on the selected build variant.…
proninyaroslav
  • 720
  • 2
  • 7
  • 19
2
votes
2 answers

Flutter Upgrade Issue

I upgraded my flutter to 2.2.0. But is showing an error like this: Because mockito >=5.0.8 depends on code_builder ^4.0.0 and build_runner >=0.9.1+1 <2.0.0 depends on code_builder >2.3.0 <4.0.0, mockito >=5.0.8 is incompatible with build_runner…
1 2
3
12 13