Questions tagged [pubspec.yaml]
46 questions
0
votes
1 answer
pub get error : Expected a key while parsing a block mapping
I don't know what the problem is.
I tried to write multiple spaces, and all of them had errors.

HHY K
- 13
- 1
0
votes
1 answer
Using a Carousel slider with text below image in Flutter
I don't know how to use or where to use Carousel slider with text below image.
return Scaffold(
body: ListView(
children: [
CarouselSlider(
items: [
Container(
margin:…
0
votes
0 answers
I am having error just after restarting computer in flutter Error: A file can't be part of more than one library
I am having this problem since restart and i think due to auto-update package but now i am having this error. This happens when i run my code and stop before executing anything.
Launching lib\main.dart on Edge in debug…

Unique Peoples.
- 1
- 1
0
votes
3 answers
FLUTTER: Unable to load asset: images/diamond.png
I know this question has been asked, I looked through all of them and couldn't find a fix for my code.
This is the pubspec yaml, I think that where I might have the error
name: i_am_rich
description: fuck this shit
version: 1.0.0+1
environment:
…

joaorphl
- 11
0
votes
1 answer
pubspec.yaml have version solving issues. HTML, SVG, RANDOM AVTAR plugins have version issue
after upgrade flutter 3 I am facing this version solving issue.
HTML version not sported SVG
if I am choosing SVG different version so RANDOM_AVTAR is not sported.
both plugin sported or dependent on different version an I need all this how can I…

sonalika
- 153
- 1
- 12
0
votes
1 answer
How do I resolve this pubspec.yaml error?
I facing a problem with my pubspec.yaml file. I added an image to my pubspec.yaml file, after adding it,when I run the flutter pub get, I got this error
Error detected in pubspec.yaml:
Unexpected child "To add assets to your application, add an…

KB 21
- 27
- 8
0
votes
0 answers
Can flutter's pubspec.yaml add non-source dependencies similar to the iOS Framework
I wonder if it is possible to rely on a non-source package or plugin in the Flutter Module? Similarly Cocoapods can rely on both source code and Framework non-source code.
pubspec.yaml like this:
dependencies:
flutter:
sdk: flutter
some_sdk:…

marcus
- 1
- 1
0
votes
3 answers
There is no pubspec.yaml file in android studio but project runs just fine how?
There is not pubspec.yaml file how should I edit it now?
The project is running just fine without any errors.

Legend
- 15
- 3
0
votes
1 answer
How to add flutter packages to pubspec.yaml automatically in vscode
How do I flutter packages to the pubspec.yaml file without going directly to the pubspec.yaml file.
I want to be able to add packages without leaving the current page I am working on.
I have seen this done in several tutorials and I want to know how…

Anthony Aniobi
- 238
- 4
- 15
0
votes
1 answer
Is there any shortcut/tool for correcting white space (tabs v spaces) in pubspec.yaml file in Flutter?
I am getting errors while adding dependencies in the pubspec.yaml file in Flutter project.
Is there any tool or IDE/command line shortcut for editing/correcting/validating the White spaces in the pubspec.yaml file?

Sweta Jain
- 3,248
- 6
- 30
- 50
-1
votes
1 answer
how do i fix the issue with my flutter project, when ever i run flutter pub get it resulted to this issue
Resolving dependencies...
Because no versions of flutter_secure_storage_windows match 1.1.3 and no versions of flutter_secure_storage_windows match >1.1.3 <2.0.0, flutter_secure_storage_windows ^1.1.3 is forbidden.
So, because fstore depends on…
-1
votes
1 answer
i cant pub get flutter_pdf_viewer
Because no versions of google_fonts match >3.0.1 <4.0.0 and google_fonts 3.0.1 depends on path_provider ^2.0.0, google_fonts ^3.0.1 requires path_provider ^2.0.0.
And because flutter_plugin_pdf_viewer >=1.0.7 depends on path_provider ^1.1.0,…
-1
votes
1 answer
how to solve pubspec.yaml error? After trying every solution from YouTube?
Why isn't this code running?
why is it displaying (pubspec.yaml 1,M) ?
And it's showing rethrow with symbol?
I tried every solution on YouTube, but this error still persists.
After saving and running the code, it displays rethrow with some…

Nup
- 1
- 3
-1
votes
1 answer
Images not loading in my VS Code project folder. It says failed to register a service worker
The images in my project are not loading. I keep getting this error anytime I try to view it. I can't run my projects:
Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The…

Iniisking
- 45
- 6
-2
votes
2 answers
error for flutter dependencies in pubspec.yaml
`when I add some flutter dependencies to the pubspec.yaml file, the exit code 1 appears.
I try different package for the test, and This error appeared in a significant number of them (for example searchbar_animation). Is there any idea?
error :…

Rmn
- 1
- 2