Questions tagged [flutter-pubspec]

Use this tag for Flutter project pubspec file.

24 questions
0
votes
0 answers

The non-abstract class 'CustomCanvas' is missing implementations for these members

I am using flutter_smartlook for monitoring in my app. It was working fine, But after upgrading to the latest version 4.1.7. It started to cause an error while running. If I downgrade to 4.1.5. It was working fine. Can anyone have any idea what is…
0
votes
3 answers

Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... Error on line 14, column 6 of pubspec.yaml: Expected ':'

Someone on stackoverflow posted about this issue before and there isn't an answer to this issue. The issue: Error on line 14, column 6 of pubspec.yaml: Expected ':'. ╷ 14 │ dds: 2.7.10 │ ^ ╵ I tried everything that was suggested in…
0
votes
1 answer

Flutter: Version solving failed in pub get

Situation I just cloned a Flutter project in which my colleagues are working on, but I cannot make it work on my laptop. I am using a Macbook Pro, the same as them. It works for them, but not for me. The problem is at flutter pub get or flutter…
0
votes
0 answers

Error: The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0' or higher to enable null safety

Help please. I get the error in the title when trying to run the app. My dart version is 3.0.3 and here is the content of the pubspec.yaml file: version: 1.15.1+1 environment: sdk: ">=2.12.0" dependencies: flutter: sdk: flutter …
0
votes
1 answer

How to automatically update pubcpec.yaml minor and patch versions?

When running flutter pub upgrade --major-versions I noticed upgrades for versions like 1.2.3 -> 1.2.4 are ignored and pubscpec.yaml is not updated! It looks like this command doesn't update minor or patch level upgrades. Any automated tools that…
giorgio79
  • 3,787
  • 9
  • 53
  • 85
0
votes
1 answer

How to solve dependency issues after a `flutter upgrade`?

I struggled to fix all the dependencies issues I had after the upgrade. there is still one regarding $ flutter pub get Resolving dependencies... Because no versions of i18n_extension match >9.0.2 <10.0.0 and i18n_extension 9.0.2 depends on sprintf…
Stéphane de Luca
  • 12,745
  • 9
  • 57
  • 95
0
votes
0 answers

syncfusion_flutter_datepicker calendar display messed up

i am using date range picker for quite a time now but since 2-3 days i am facing a very strange issue regardless of the version I change. Even if i add the very basic code from your site - Positioned( left: 20, top: 50, right: 20, bottom:…
0
votes
1 answer

Adding conditional dependencies based on platform version in flutter

I have a flutter app in which we need to add a package that only supports iOS 13 and above, how can we add that package only for users above version 13 in iOS and not for users below it? Is there any better way other than having 2 seperate versions…
0
votes
1 answer

Is there a way to change the name in the pubspec yaml file and automatically update all file import statements? (Flutter)

A small formatting question using Flutter with Android Studio: I want to change the name in my pubspec.yaml file (I have changed my app's name since starting). The minor (but very time intensive) issue is if I change the name I then need to update…
Kdon
  • 892
  • 6
  • 19
0
votes
0 answers

Using path parameter under another dependency in pubspec.yaml

In one of the projects, I found a path in pubspec.yaml that refers to another dependency. What in this case defines this parameter (obviously the path) and how to read this pattern ../../../ ? dependencies: flutter: sdk: flutter rxdart: …
rozerro
  • 5,787
  • 9
  • 46
  • 94
0
votes
1 answer

Got sockect error trying to find packeage test at https//pub.dev

C:\\flutter\\bin\\flutter.bat --no-color pub get Running "flutter pub get" in flutter_tools... Resolving dependencies in ..\\..\\..\\..\\flutter\\packages\\flutter_tools... Waiting for another flutter command to release the startup lock... Got…
0
votes
0 answers

Flutter How to use GestureDetector to navigate using SidebarX-package?

Im using SidebarX package to create a sidebar in Flutter. I dont problem to navigate from the Sidemenu (by clicking on lables from the sidemenu). However, if i want to navigate by example clicking on a text inside a page, then im not sure on how to…
0
votes
1 answer

How to bump pref package to version 2.7.1 (needs Flutter 3.7.0) while I'm on the latest Flutter beta channel 3.7.0-1.5.pre?

I'm on the Flutter beta channel, the latest 3.7.0-1.5.pre version. I received a Dependabot PR about bumping the pref package's version to 2.7.1 (from 2.7.0), see https://github.com/TrackMyIndoorWorkout/TrackMyIndoorWorkout/pull/407. I was also…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
0
votes
3 answers

I wanted to add this font to assets

assets: - assets/ fonts: - family: Schyler fonts: - asset: fonts/Schyler-Regular.ttf - asset: fonts/Schyler-Italic.ttf - family: Trajan Pro fonts: - asset: fonts/TrajanPro.ttf -…
0
votes
0 answers

Image assets are not being used based on device pixel ratio

I have an image I'm trying to display based on the device pixel ratio. But the app just keeps using the 1.0x version of the image. In my project's directory I have the structure assets tablet graphics 0.5x image.png 2.0x …
1
2