Open folakemiariyo opened 4 years ago
name: personal_expense description: A new Flutter project.
pub publish
. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment: sdk: ">=2.7.0 <3.0.0"
dependencies: flutter: sdk: flutter intl: ^0.16.1
cupertino_icons: ^0.1.3
dev_dependencies: flutter_test: sdk: flutter
flutter:
uses-material-design: true
assets:
assets/images/waiting.png
fonts:
#
have been able to solve the issue?
if you haven't what is the error message on the pubspec.yaml file?
I think you just changed assets area but it is not clear yet what is the problem exactly ? Can you try send a screenshot with error message ?
Hi, I probably have a problem with the pubspec.yaml file too? Could you help, I am a new user and I'm trying to learn everything? Included attachments (2)? Please, help me !
Hi Could you please send pubspec.yaml screen shot to be able to help you.ThanksOn 1 Jan 2021 8:08 pm, mandata5010 notifications@github.com wrote: Hi, I probably have a problem with the pubspec.yaml file too? Could you help, I am a new user and I'm trying to learn everything? Included attachments (2)?
Please, help me !
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, did you mean this? Also included is a pub? Thank you.
The code shown in your pubspec.yaml
file Shouldn't be there in the first place. My guess is, you copied the code and pasted it in the pubspec.yaml
file when you should have pasted it in main.dart
. The original code in the YAML file got overwritten.
It is throwing an error because the YAML file has got unrecognized code in it.
This what pubspec.yaml
file looks originally. You can copy-paste it there.
name: Quotes
description: Read a list of quotes frome famous authors.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- images/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
The suggested syntax for YAML files is to use 2 spaces for indentation, in your case it probably won’t work otherwise, then check your pubspec.yaml for this case
i am having issues in my pubspec.yaml file