Questions tagged [pubspec]

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

For more information, see Dart documentation.

191 questions
0
votes
1 answer

Getting this exception in pubspec.yaml while adding icon for my app

The current Dart SDK version is 2.12.2. Because audioplayers 0.18.3 depends on uuid ^3.0.1 which depends on crypto ^3.0.0, audioplayers 0.18.3 requires crypto ^3.0.0. (1) So, because archive >=2.0.0 <3.0.0-nullsafety.0 depends on crypto ^2.0.0,…
0
votes
2 answers

Flutter: chopper_generator >=3.0.4 is incompatible with moor_generator ^4.1.0, how to solve?

I updated flutter to the latest version: PS C:\Users\pc> flutter --version Flutter 2.0.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 8962f6dc68 (8 days ago) • 2021-03-11 13:22:20 -0800 Engine • revision…
Simou
  • 682
  • 9
  • 28
-1
votes
0 answers

Flutter desktop app windows, record package mic works with Bluetooth headphones but not directly with laptop mic

We are using record pub package to record a audio and use speech-to-text to convert voice to text for our flutter desktop app. the recording works through Bluetooth headphones. But recording doesn't work with direct mic or wired headphones mic. we…
Khaleel
  • 1,212
  • 2
  • 16
  • 34
-1
votes
1 answer

Pubspec yml in flutter

pub speck.ymal I have problem in environment it refers environment error may be position is wrong.
Khaled
  • 1
-1
votes
1 answer

Dart get won't run

I am facing a problem that really isn't making any sense, a problem that started when I wanted to use the "http" and "provide" dependencies by entering them into the pubspec.yaml file. pub get won't run due to the dart version being lower than…
-1
votes
2 answers

can't use Font in flutter and use it in app

I'm trying to add this font but i don't know why can't use it . fonts: - family: IRANSansX fonts: - asset: assets/fonts/IRANSansXFaNum-Black.ttf - asset: assets/fonts/IRANSansXFaNum-Bold.ttf - asset:…
siitaw
  • 107
  • 3
  • 12
-1
votes
1 answer

Adding widget to flutter app causes conflicts in .yaml file

I am trying to add a calendar widget to my flutter app but I am getting errors when I run "pub get". pubspec.yaml content: environment: sdk: ">=2.8.0 <3.0.0" dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.2 …
LostTexan
  • 431
  • 5
  • 18
-1
votes
2 answers

Flutter Pubnub version solving failed

got this exception when I add pubnub: ^1.4.4 into pubspec.yaml Because pubnub >=1.0.2 <3.2.0 depends on dio ^3.0.0 and talad_flutter depends on dio ^4.0.0, pubnub >=1.0.2 <3.2.0 is forbidden. So, because talad_flutter depends on pubnub ^1.4.4,…
-2
votes
1 answer

Flutter Android 12 exported="false" Error

I made a new app and I'm in the process of uploading it to google play store. But I am getting exported="false" error. I tried many ways but couldn't. I updated most of the packages in the pubspec file to the latest version, but still the false…
muratapps
  • 61
  • 1
  • 4
-2
votes
1 answer

How can I avoid prerelease versions in Flutter?

Because null safety in flutter is relatively new, I had to depend on some prerelease versions. However for some packages I would like to use the stable version. The problem is: flutter don't let me use version 1.0.0 of hive_generator. It always…
Tien Do Nam
  • 3,630
  • 3
  • 15
  • 30
1 2 3
12
13